projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07ef8e6
)
Fix delegation
author
Daniel Berlin
<dberlin@dberlin.org>
Mon, 26 Jan 2015 17:30:39 +0000
(17:30 +0000)
committer
Daniel Berlin
<dberlin@dberlin.org>
Mon, 26 Jan 2015 17:30:39 +0000
(17:30 +0000)
llvm-svn: 227098
llvm/lib/Analysis/CFLAliasAnalysis.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/CFLAliasAnalysis.cpp
b/llvm/lib/Analysis/CFLAliasAnalysis.cpp
index
9783671
..
321b57b
100644
(file)
--- a/
llvm/lib/Analysis/CFLAliasAnalysis.cpp
+++ b/
llvm/lib/Analysis/CFLAliasAnalysis.cpp
@@
-227,10
+227,13
@@
public:
// Comparisons between global variables and other constants should be
// handled by BasicAA.
if (isa<Constant>(LocA.Ptr) && isa<Constant>(LocB.Ptr)) {
- return
MayAlias
;
+ return
AliasAnalysis::alias(LocA, LocB)
;
}
+ AliasResult QueryResult = query(LocA, LocB);
+ if (QueryResult == MayAlias)
+ return AliasAnalysis::alias(LocA, LocB);
- return
query(LocA, LocB)
;
+ return
QueryResult
;
}
void initializePass() override { InitializeAliasAnalysis(this); }