Removed implicit indirection when computing heap base. (#363)

Fix expected legalized heap_addr
This commit is contained in:
Lachlan Sneff
2018-06-16 10:31:52 -04:00
committed by Dan Gohman
parent f97ad59991
commit b3c3ca331b
2 changed files with 5 additions and 18 deletions

View File

@@ -53,8 +53,7 @@ ebb0(v0: i32, v999: i64):
; Boundscheck should be eliminated.
; Checks here are assuming that no pipehole opts fold the load offsets.
; nextln: $(xoff=$V) = uextend.i64 v0
; nextln: $(haddr=$V) = iadd_imm v999, 64
; nextln: $(hbase=$V) = load.i64 notrap aligned $haddr
; nextln: $(hbase=$V) = iadd_imm v999, 64
; nextln: v1 = iadd $hbase, $xoff
v2 = load.f32 v1+16
; nextln: v2 = load.f32 v1+16
@@ -101,8 +100,7 @@ ebb0(v0: i32, v999: i64):
; check: $ok:
; Checks here are assuming that no pipehole opts fold the load offsets.
; nextln: $(xoff=$V) = uextend.i64 v0
; nextln: $(haddr=$V) = iadd_imm.i64 v999, 64
; nextln: $(hbase=$V) = load.i64 notrap aligned $haddr
; nextln: $(hbase=$V) = iadd_imm.i64 v999, 64
; nextln: v1 = iadd $hbase, $xoff
v2 = load.f32 v1+0x7fff_ffff
; nextln: v2 = load.f32 v1+0x7fff_ffff