summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-06-04 05:11:22 +0000
committerDan Gohman <gohman@apple.com>2011-06-04 05:11:22 +0000
commit87fdceaf73a5fd4cc963dd890f96988a1f1ae970 (patch)
tree5ea292b26e11a784befb2bc437116ebb1f02ba79 /llvm/lib/Analysis/BasicAliasAnalysis.cpp
parenta4615a6f9459d5d53ce570db7e03f91c268c834e (diff)
downloadbcm5719-llvm-87fdceaf73a5fd4cc963dd890f96988a1f1ae970.tar.gz
bcm5719-llvm-87fdceaf73a5fd4cc963dd890f96988a1f1ae970.zip
Revert r131781 again. Apparently there is more going on here.
llvm-svn: 132625
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/BasicAliasAnalysis.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index 3d10a5fd4d7..24297d4a0f3 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -944,17 +944,7 @@ BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size,
return NoAlias;
}
- // Statically, we can see that the base objects are the same, but the
- // pointers have dynamic offsets which we can't resolve. And none of our
- // little tricks above worked.
- //
- // TODO: Returning PartialAlias instead of MayAlias is a mild hack; the
- // practical effect of this is protecting TBAA in the case of dynamic
- // indices into arrays of unions. An alternative way to solve this would
- // be to have clang emit extra metadata for unions and/or union accesses.
- // A union-specific solution wouldn't handle the problem for malloc'd
- // memory however.
- return PartialAlias;
+ return MayAlias;
}
static AliasAnalysis::AliasResult
OpenPOWER on IntegriCloud