]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
TBAA: handle scalar TBAA format and struct-path aware TBAA format.
authorManman Ren <manman.ren@gmail.com>
Fri, 27 Sep 2013 18:34:27 +0000 (18:34 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 27 Sep 2013 18:34:27 +0000 (18:34 +0000)
commit9e81c3bdb216e7ca457acf6614591e5b807cf70c
treedf0fe4a9f9a47e0dd33a3dca49eb5ed09e4ebc57
parentd237e834a816399b7e1561dd4db2c501f5095712
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
28 files changed:
lib/Analysis/TypeBasedAliasAnalysis.cpp
test/Analysis/BasicAA/full-store-partial-alias.ll
test/Analysis/TypeBasedAliasAnalysis/aliastest.ll
test/Analysis/TypeBasedAliasAnalysis/argument-promotion.ll
test/Analysis/TypeBasedAliasAnalysis/dse.ll
test/Analysis/TypeBasedAliasAnalysis/dynamic-indices.ll
test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll
test/Analysis/TypeBasedAliasAnalysis/gvn-nonlocal-type-mismatch.ll
test/Analysis/TypeBasedAliasAnalysis/intrinsics.ll
test/Analysis/TypeBasedAliasAnalysis/licm.ll
test/Analysis/TypeBasedAliasAnalysis/memcpyopt.ll
test/Analysis/TypeBasedAliasAnalysis/placement-tbaa.ll
test/Analysis/TypeBasedAliasAnalysis/precedence.ll
test/Analysis/TypeBasedAliasAnalysis/sink.ll
test/Analysis/TypeBasedAliasAnalysis/tbaa-path.ll
test/CodeGen/SystemZ/memcpy-02.ll
test/Instrumentation/AddressSanitizer/X86/bug_11395.ll
test/Instrumentation/ThreadSanitizer/read_from_global.ll
test/Instrumentation/ThreadSanitizer/vptr_read.ll
test/Instrumentation/ThreadSanitizer/vptr_update.ll
test/Transforms/GVN/preserve-tbaa.ll
test/Transforms/GVN/tbaa.ll
test/Transforms/InstCombine/store.ll
test/Transforms/InstCombine/struct-assign-tbaa.ll
test/Transforms/JumpThreading/thread-loads.ll
test/Transforms/LICM/2011-04-06-PromoteResultOfPromotion.ll
test/Transforms/LICM/promote-order.ll
test/Transforms/LICM/scalar_promote.ll