aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-27 02:18:52 +0000
committerChris Lattner <sabre@nondot.org>2004-07-27 02:18:52 +0000
commitdb5b80a7f2521a1f9ca8f339fdac2b6e11cc422a (patch)
tree7db07df490081a61ccbd01ffefe251da631dd174 /lib/Analysis
parente181b94309e34f9c16830a0a2a22e1c3c4b7f7ac (diff)
downloadexternal_llvm-db5b80a7f2521a1f9ca8f339fdac2b6e11cc422a.zip
external_llvm-db5b80a7f2521a1f9ca8f339fdac2b6e11cc422a.tar.gz
external_llvm-db5b80a7f2521a1f9ca8f339fdac2b6e11cc422a.tar.bz2
Make basicaa a bit more aggressive
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-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 19397f6..5c8dbe1 100644
--- a/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/lib/Analysis/BasicAliasAnalysis.cpp
@@ -196,6 +196,10 @@ static bool AddressMightEscape(const Value *V) {
return true;
if (AddressMightEscape(I)) return true;
break;
+ case Instruction::Ret:
+ // If returned, the address will escape to calling functions, but no
+ // callees could modify it.
+ break;
default:
return true;
}