cranelift: Remove brz and brnz (#5630)

Remove the brz and brnz instructions, as their behavior is now redundant with brif.
This commit is contained in:
Trevor Elliott
2023-01-30 12:34:56 -08:00
committed by GitHub
parent 77cf547f41
commit a5698cedf8
247 changed files with 2947 additions and 3754 deletions

View File

@@ -7,8 +7,7 @@ function %f(i32) -> i32 {
block0(v0: i32):
v1 = iconst.i32 42
v2 = iadd.i32 v0, v1
brnz v2, block1
jump block2
brif v2, block1, block2
block1:
v3 = iconst.i32 84
@@ -22,8 +21,7 @@ block2:
; check: block0(v0: i32):
; check: v1 = iconst.i32 42
; check: v2 = iadd v0, v1
; check: brnz v2, block1
; check: jump block2
; check: brif v2, block1, block2
; check: block1:
; check: v11 = iconst.i32 126
; check: v13 = iadd.i32 v0, v11