aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-11 16:43:07 +0000
committerChris Lattner <sabre@nondot.org>2004-04-11 16:43:07 +0000
commit65585aa3fcb6c70ab36fb8965ac864378f5e3d44 (patch)
treead5f2534efc1bcb42d920c6c8b2d2d90e12062b4 /lib
parent414c36769aff6ec688c49f493122529394357d05 (diff)
downloadexternal_llvm-65585aa3fcb6c70ab36fb8965ac864378f5e3d44.zip
external_llvm-65585aa3fcb6c70ab36fb8965ac864378f5e3d44.tar.gz
external_llvm-65585aa3fcb6c70ab36fb8965ac864378f5e3d44.tar.bz2
Allow clients to be more efficient.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/BasicAliasAnalysis.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp
index a689135..8fc561e 100644
--- a/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/lib/Analysis/BasicAliasAnalysis.cpp
@@ -49,6 +49,10 @@ namespace {
ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
+ /// hasNoModRefInfoForCalls - We have no way to test one call against
+ /// another, unless they are pure or const.
+ virtual bool hasNoModRefInfoForCalls() const { return true; }
+
/// pointsToConstantMemory - Chase pointers until we find a (constant
/// global) or not.
bool pointsToConstantMemory(const Value *P);