summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AliasDebugger.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-08 16:45:26 +0000
committerDan Gohman <gohman@apple.com>2010-11-08 16:45:26 +0000
commit9130bad71fb80ad6174c23fd073cadff8223d168 (patch)
tree8404e603658ba45d23dcf149cc872d65718f788a /llvm/lib/Analysis/AliasDebugger.cpp
parent0b56778d65717534b118742d56deb67306b52b9d (diff)
downloadbcm5719-llvm-9130bad71fb80ad6174c23fd073cadff8223d168.tar.gz
bcm5719-llvm-9130bad71fb80ad6174c23fd073cadff8223d168.zip
Extend the AliasAnalysis::pointsToConstantMemory interface to allow it
to optionally look for constant or local (alloca) memory. Teach BasicAliasAnalysis::pointsToConstantMemory to look through Select and Phi nodes, and to support looking for local memory. Remove FunctionAttrs' PointsToLocalOrConstantMemory function, now that AliasAnalysis knows all the tricks that it knew. llvm-svn: 118412
Diffstat (limited to 'llvm/lib/Analysis/AliasDebugger.cpp')
-rw-r--r--llvm/lib/Analysis/AliasDebugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/AliasDebugger.cpp b/llvm/lib/Analysis/AliasDebugger.cpp
index 4b9aefcb114..f15c05153e1 100644
--- a/llvm/lib/Analysis/AliasDebugger.cpp
+++ b/llvm/lib/Analysis/AliasDebugger.cpp
@@ -113,9 +113,9 @@ namespace {
return AliasAnalysis::getModRefInfo(CS1,CS2);
}
- bool pointsToConstantMemory(const Location &Loc) {
+ bool pointsToConstantMemory(const Location &Loc, bool OrLocal) {
assert(Vals.find(Loc.Ptr) != Vals.end() && "Never seen value in AA before");
- return AliasAnalysis::pointsToConstantMemory(Loc);
+ return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
}
virtual void deleteValue(Value *V) {
OpenPOWER on IntegriCloud