Fix missing modification of jump table in licm
This commit is contained in:
committed by
Yoshitomo Nakanishi
parent
2cec20aa57
commit
855a6374dd
19
cranelift/filetests/filetests/licm/br-table.clif
Normal file
19
cranelift/filetests/filetests/licm/br-table.clif
Normal file
@@ -0,0 +1,19 @@
|
||||
test compile
|
||||
set opt_level=speed_and_size
|
||||
target x86_64
|
||||
|
||||
function %br_table_opt() {
|
||||
jt0 = jump_table [block1, block2]
|
||||
|
||||
block0:
|
||||
v0 = iconst.i32 1
|
||||
br_table v0, block2, jt0
|
||||
|
||||
block1:
|
||||
return
|
||||
|
||||
block2:
|
||||
v1 = iconst.i32 1
|
||||
jump block2
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user