aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-04-30 17:52:57 +0000
committerManman Ren <mren@apple.com>2013-04-30 17:52:57 +0000
commit2dc50d306752c8672d1543feb88517705cdb25e7 (patch)
tree51b8265d04997616227031ee01b2fda343c46589 /test/Transforms/InstCombine
parent8960a5c63db0d4f1e6ad794ea626c68de9313dbf (diff)
downloadexternal_llvm-2dc50d306752c8672d1543feb88517705cdb25e7.zip
external_llvm-2dc50d306752c8672d1543feb88517705cdb25e7.tar.gz
external_llvm-2dc50d306752c8672d1543feb88517705cdb25e7.tar.bz2
TBAA: remove !tbaa from testing cases if not used.
This will make it easier to turn on struct-path aware TBAA since the metadata format will change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/2012-05-27-Negative-Shift-Crash.ll16
1 files changed, 6 insertions, 10 deletions
diff --git a/test/Transforms/InstCombine/2012-05-27-Negative-Shift-Crash.ll b/test/Transforms/InstCombine/2012-05-27-Negative-Shift-Crash.ll
index 2ec0a32..ba83fe9 100644
--- a/test/Transforms/InstCombine/2012-05-27-Negative-Shift-Crash.ll
+++ b/test/Transforms/InstCombine/2012-05-27-Negative-Shift-Crash.ll
@@ -20,10 +20,10 @@ entry:
define void @fn4() nounwind uwtable ssp {
entry:
- %0 = load i32* @d, align 4, !tbaa !0
+ %0 = load i32* @d, align 4
%cmp = icmp eq i32 %0, 0
%conv = zext i1 %cmp to i32
- store i32 %conv, i32* @c, align 4, !tbaa !0
+ store i32 %conv, i32* @c, align 4
tail call void @fn3(i32 %conv) nounwind
ret void
}
@@ -31,15 +31,15 @@ entry:
define void @fn3(i32 %p1) nounwind uwtable ssp {
entry:
%and = and i32 %p1, 8
- store i32 %and, i32* @e, align 4, !tbaa !0
+ store i32 %and, i32* @e, align 4
%sub = add nsw i32 %and, -1
- store i32 %sub, i32* @f, align 4, !tbaa !0
- %0 = load i32* @a, align 4, !tbaa !0
+ store i32 %sub, i32* @f, align 4
+ %0 = load i32* @a, align 4
%tobool = icmp eq i32 %0, 0
br i1 %tobool, label %if.else, label %if.then
if.then: ; preds = %entry
- %1 = load i32* @b, align 4, !tbaa !0
+ %1 = load i32* @b, align 4
%.lobit = lshr i32 %1, 31
%2 = trunc i32 %.lobit to i8
%.not = xor i8 %2, 1
@@ -55,7 +55,3 @@ if.end: ; preds = %if.else, %if.then
store i32 %storemerge, i32* @b, align 4
ret void
}
-
-!0 = metadata !{metadata !"int", metadata !1}
-!1 = metadata !{metadata !"omnipotent char", metadata !2}
-!2 = metadata !{metadata !"Simple C/C++ TBAA"}