aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GVN/load-constant-mem.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GVN/load-constant-mem.ll')
-rw-r--r--test/Transforms/GVN/load-constant-mem.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Transforms/GVN/load-constant-mem.ll b/test/Transforms/GVN/load-constant-mem.ll
index a7dacea..f870485 100644
--- a/test/Transforms/GVN/load-constant-mem.ll
+++ b/test/Transforms/GVN/load-constant-mem.ll
@@ -4,10 +4,10 @@
define i32 @test(i8* %p, i32 %i) nounwind {
entry:
- %P = getelementptr [4 x i32]* @G, i32 0, i32 %i
- %A = load i32* %P
+ %P = getelementptr [4 x i32], [4 x i32]* @G, i32 0, i32 %i
+ %A = load i32, i32* %P
store i8 4, i8* %p
- %B = load i32* %P
+ %B = load i32, i32* %P
%C = sub i32 %A, %B
ret i32 %C
}