diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-09-27 18:34:27 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-09-27 18:34:27 +0000 |
commit | 9e81c3bdb216e7ca457acf6614591e5b807cf70c (patch) | |
tree | df0fe4a9f9a47e0dd33a3dca49eb5ed09e4ebc57 /test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll | |
parent | d237e834a816399b7e1561dd4db2c501f5095712 (diff) | |
download | llvm-9e81c3bdb216e7ca457acf6614591e5b807cf70c.tar.gz llvm-9e81c3bdb216e7ca457acf6614591e5b807cf70c.tar.bz2 llvm-9e81c3bdb216e7ca457acf6614591e5b807cf70c.tar.xz |
TBAA: handle scalar TBAA format and struct-path aware TBAA format.
Remove the command line argument "struct-path-tbaa" since we should not depend
on command line argument to decide which format the IR file is using. Instead,
we check the first operand of the tbaa tag node, if it is a MDNode, we treat
it as struct-path aware TBAA format, otherwise, we treat it as scalar TBAA
format.
When clang starts to use struct-path aware TBAA format no matter whether
struct-path-tbaa is no, and we can auto-upgrade existing bc files, the support
for scalar TBAA format can be dropped.
Existing testing cases are updated to use the struct-path aware TBAA format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll')
-rw-r--r-- | test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll b/test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll index 52e394b2d0..4dc40739ed 100644 --- a/test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll +++ b/test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll @@ -13,7 +13,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3 ; CHECK: for.end: ; CHECK: %arrayidx31 = getelementptr inbounds %union.vector_t* %t, i64 0, i32 0, i64 1 -; CHECK: %tmp32 = load i64* %arrayidx31, align 8, !tbaa !3 +; CHECK: %tmp32 = load i64* %arrayidx31, align 8, !tbaa [[TAG:!.*]] define void @vrlh(%union.vector_t* %va, %union.vector_t* %vb, %union.vector_t* %vd) nounwind { entry: @@ -123,9 +123,15 @@ for.end: ; preds = %for.body ret float %tmp10 } -!0 = metadata !{metadata !"short", metadata !1} +; CHECK: [[TAG]] = metadata !{metadata [[TYPE_LL:!.*]], metadata [[TYPE_LL]], i64 0} +; CHECK: [[TYPE_LL]] = metadata !{metadata !"long long", metadata {{!.*}}} +!0 = metadata !{metadata !6, metadata !6, i64 0} !1 = metadata !{metadata !"omnipotent char", metadata !2} !2 = metadata !{metadata !"Simple C/C++ TBAA", null} -!3 = metadata !{metadata !"long long", metadata !1} -!4 = metadata !{metadata !"int", metadata !1} -!5 = metadata !{metadata !"float", metadata !1} +!3 = metadata !{metadata !7, metadata !7, i64 0} +!4 = metadata !{metadata !8, metadata !8, i64 0} +!5 = metadata !{metadata !9, metadata !9, i64 0} +!6 = metadata !{metadata !"short", metadata !1} +!7 = metadata !{metadata !"long long", metadata !1} +!8 = metadata !{metadata !"int", metadata !1} +!9 = metadata !{metadata !"float", metadata !1} |