diff options
author | Bjorn Steinbrink <bsteinbr@gmail.com> | 2015-07-10 22:30:17 +0000 |
---|---|---|
committer | Bjorn Steinbrink <bsteinbr@gmail.com> | 2015-07-10 22:30:17 +0000 |
commit | a6b929dfe2bb672b2569a8ab328da05018b884d9 (patch) | |
tree | 58ff54f06dafae8d49c86d7602056c7df279e92c /llvm/test | |
parent | 0d5197380cef82aba7d38244eb9418e51000a3c6 (diff) | |
download | bcm5719-llvm-a6b929dfe2bb672b2569a8ab328da05018b884d9.tar.gz bcm5719-llvm-a6b929dfe2bb672b2569a8ab328da05018b884d9.zip |
[InstCombine] Actually combine AA metadata when replacing one load with another
Fixes PR24083
llvm-svn: 241955
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/InstCombine/load-combine-metadata.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/load-combine-metadata.ll b/llvm/test/Transforms/InstCombine/load-combine-metadata.ll index d67f83c1ebc..9b9c1fe607b 100644 --- a/llvm/test/Transforms/InstCombine/load-combine-metadata.ll +++ b/llvm/test/Transforms/InstCombine/load-combine-metadata.ll @@ -3,17 +3,15 @@ target datalayout = "e-m:e-p:64:64:64-i64:64-f80:128-n8:16:32:64-S128" ; CHECK-LABEL: @test_load_load_combine_metadata( -; Check that range metadata is combined and AA metadata is preserved +; Check that range and AA metadata is combined ; CHECK: %[[V:.*]] = load i32, i32* %0 ; CHECK-SAME: !tbaa !{{[0-9]+}} ; CHECK-SAME: !range ![[RANGE:[0-9]+]] -; CHECK-SAME: !alias.scope !{{[0-9]+}} -; CHECK-SAME: !noalias !{{[0-9]+}} ; CHECK: store i32 %[[V]], i32* %1 ; CHECK: store i32 %[[V]], i32* %2 define void @test_load_load_combine_metadata(i32*, i32*, i32*) { %a = load i32, i32* %0, !tbaa !8, !range !0, !alias.scope !5, !noalias !6 - %b = load i32, i32* %0, !range !1 + %b = load i32, i32* %0, !tbaa !8, !range !1 store i32 %a, i32* %1 store i32 %b, i32* %2 ret void |