Struct-path aware TBAA: update getMostGenericTBAA
authorManman Ren <mren@apple.com>
Mon, 22 Apr 2013 23:00:44 +0000 (23:00 +0000)
committerManman Ren <mren@apple.com>
Mon, 22 Apr 2013 23:00:44 +0000 (23:00 +0000)
commit2ff97832e593926ea8dbdd5fc5bcf367475638a9
tree01601325526379aaa882c7d7445d63da860313a2
parent2c8dc64357083e81b36a44698a4bacb229f12317
Struct-path aware TBAA: update getMostGenericTBAA

The tag is of type TBAANode when flag EnableStructPathTBAA is off.

Move implementation of MDNode::getMostGenericTBAA to TypeBasedAliasAnalysis.cpp
since it depends on how to interprete the MDNodes for scalar TBAA and
struct-path aware TBAA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180068 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/TypeBasedAliasAnalysis.cpp
lib/IR/Metadata.cpp