summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-05-26 04:58:46 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-05-26 04:58:46 +0000
commitb9aa1f4a03a3e1d8e062ceff6eb8ed71b4dd93eb (patch)
treef7e2da340d2843d74a4c5375e9054fd4726bfa52 /llvm/lib/Analysis/BasicAliasAnalysis.cpp
parent3bfedcffe09c393b1a94f4f58e2d5717122dd421 (diff)
downloadbcm5719-llvm-b9aa1f4a03a3e1d8e062ceff6eb8ed71b4dd93eb.tar.gz
bcm5719-llvm-b9aa1f4a03a3e1d8e062ceff6eb8ed71b4dd93eb.zip
MemorySSA: Revert r269678 and r268068; replace with special casing in MemorySSA.
It turns out that too many passes are relying on alias analysis results for control dependencies. Until we fix that by introducing a more accurate modelling of control dependencies, special case assume in MemorySSA instead. Also introduce tests to ensure we don't regress the FunctionAttrs or LICM passes. Differential Revision: http://reviews.llvm.org/D20658 llvm-svn: 270823
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/BasicAliasAnalysis.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index 6d166da75b9..f1b60c6432b 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -580,20 +580,11 @@ FunctionModRefBehavior BasicAAResult::getModRefBehavior(ImmutableCallSite CS) {
/// Returns the behavior when calling the given function. For use when the call
/// site is not known.
-/// NOTE: Because of the special case handling of llvm.assume below, the result
-/// of this function may not match similar results derived from function
-/// attributes (e.g. "readnone").
FunctionModRefBehavior BasicAAResult::getModRefBehavior(const Function *F) {
// If the function declares it doesn't access memory, we can't do better.
if (F->doesNotAccessMemory())
return FMRB_DoesNotAccessMemory;
- // While the assume intrinsic is marked as arbitrarily writing so that
- // proper control dependencies will be maintained, it never aliases any
- // actual memory locations.
- if (F->getIntrinsicID() == Intrinsic::assume)
- return FMRB_DoesNotAccessMemory;
-
FunctionModRefBehavior Min = FMRB_UnknownModRefBehavior;
// If the function declares it only reads memory, go with that.
OpenPOWER on IntegriCloud