InstCombine: Fold comparisons between unguessable allocas and other pointers
[oota-llvm.git] / test / Transforms / ScalarRepl / 2008-06-05-loadstore-agg.ll
index ad4918d2927c9c6c5ab66ab09fd841eafa5fa140..d1f33121174547b2cf8c0eb9c574b1f2d094099f 100644 (file)
@@ -15,7 +15,7 @@ define i32 @foo() {
        store { i32, i32 } %res2, { i32, i32 }* %target
         ; Actually use %target, so it doesn't get removed altogether
         %ptr = getelementptr { i32, i32 }, { i32, i32 }* %target, i32 0, i32 0
-        %val = load i32* %ptr
+        %val = load i32, i32* %ptr
        ret i32 %val
 }
 
@@ -28,6 +28,6 @@ define i32 @bar() {
        store [ 2 x i32 ] %res2, [ 2 x i32 ]* %target
         ; Actually use %target, so it doesn't get removed altogether
         %ptr = getelementptr [ 2 x i32 ], [ 2 x i32 ]* %target, i32 0, i32 0
-        %val = load i32* %ptr
+        %val = load i32, i32* %ptr
        ret i32 %val
 }