Teach simple_gvn that iconst.i32 is not congruent to iconst.i64.

This commit is contained in:
Dan Gohman
2017-08-30 14:33:54 -07:00
parent 9ea5226b89
commit 3532c3533a
3 changed files with 19 additions and 4 deletions

View File

@@ -9,3 +9,17 @@ ebb0(v0: i32):
; check: regmove v0, %10 -> %20
return v0
}
function %differing_typevars() -> i64 {
ebb0:
v0 = iconst.i32 7
v1 = iconst.i64 7
v2 = iconst.i64 8
; check: v0 = iconst.i32 7
; check: v1 = iconst.i64 7
; check: v2 = iconst.i64 8
v3 = uextend.i64 v0
v4 = iadd v2, v1
v5 = iadd v4, v3
return v5
}