diff options
Diffstat (limited to 'test/CodeGen/X86/2012-11-28-merge-store-alias.ll')
-rw-r--r-- | test/CodeGen/X86/2012-11-28-merge-store-alias.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/CodeGen/X86/2012-11-28-merge-store-alias.ll b/test/CodeGen/X86/2012-11-28-merge-store-alias.ll index 756e86e..df4f028 100644 --- a/test/CodeGen/X86/2012-11-28-merge-store-alias.ll +++ b/test/CodeGen/X86/2012-11-28-merge-store-alias.ll @@ -13,15 +13,15 @@ define i32 @merge_stores_can() nounwind ssp { %ret0 = call i32 @foo([10 x i32]* %object1) nounwind - %O1_1 = getelementptr [10 x i32]* %object1, i64 0, i32 1 - %O1_2 = getelementptr [10 x i32]* %object1, i64 0, i32 2 - %O1_3 = getelementptr [10 x i32]* %object1, i64 0, i32 3 - %O1_4 = getelementptr [10 x i32]* %object1, i64 0, i32 4 - %ld_ptr = getelementptr [10 x i32]* %object1, i64 0, i32 9 + %O1_1 = getelementptr [10 x i32], [10 x i32]* %object1, i64 0, i32 1 + %O1_2 = getelementptr [10 x i32], [10 x i32]* %object1, i64 0, i32 2 + %O1_3 = getelementptr [10 x i32], [10 x i32]* %object1, i64 0, i32 3 + %O1_4 = getelementptr [10 x i32], [10 x i32]* %object1, i64 0, i32 4 + %ld_ptr = getelementptr [10 x i32], [10 x i32]* %object1, i64 0, i32 9 store i32 0, i32* %O1_1 store i32 0, i32* %O1_2 - %ret = load i32* %ld_ptr ; <--- does not alias. + %ret = load i32, i32* %ld_ptr ; <--- does not alias. store i32 0, i32* %O1_3 store i32 0, i32* %O1_4 @@ -36,15 +36,15 @@ define i32 @merge_stores_can() nounwind ssp { ; CHECK: ret define i32 @merge_stores_cant([10 x i32]* %in0, [10 x i32]* %in1) nounwind ssp { - %O1_1 = getelementptr [10 x i32]* %in1, i64 0, i32 1 - %O1_2 = getelementptr [10 x i32]* %in1, i64 0, i32 2 - %O1_3 = getelementptr [10 x i32]* %in1, i64 0, i32 3 - %O1_4 = getelementptr [10 x i32]* %in1, i64 0, i32 4 - %ld_ptr = getelementptr [10 x i32]* %in0, i64 0, i32 2 + %O1_1 = getelementptr [10 x i32], [10 x i32]* %in1, i64 0, i32 1 + %O1_2 = getelementptr [10 x i32], [10 x i32]* %in1, i64 0, i32 2 + %O1_3 = getelementptr [10 x i32], [10 x i32]* %in1, i64 0, i32 3 + %O1_4 = getelementptr [10 x i32], [10 x i32]* %in1, i64 0, i32 4 + %ld_ptr = getelementptr [10 x i32], [10 x i32]* %in0, i64 0, i32 2 store i32 0, i32* %O1_1 store i32 0, i32* %O1_2 - %ret = load i32* %ld_ptr ; <--- may alias + %ret = load i32, i32* %ld_ptr ; <--- may alias store i32 0, i32* %O1_3 store i32 0, i32* %O1_4 |