diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-27 02:18:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-27 02:18:52 +0000 |
commit | db5b80a7f2521a1f9ca8f339fdac2b6e11cc422a (patch) | |
tree | 7db07df490081a61ccbd01ffefe251da631dd174 /lib/Analysis | |
parent | e181b94309e34f9c16830a0a2a22e1c3c4b7f7ac (diff) | |
download | external_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.cpp | 4 |
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; } |