Make basicaa a bit more aggressive
authorChris Lattner <sabre@nondot.org>
Tue, 27 Jul 2004 02:18:52 +0000 (02:18 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 27 Jul 2004 02:18:52 +0000 (02:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15252 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp

index 19397f67da3e3de128bfb923fa9802e980dfbf7a..5c8dbe16c8b49e62dcabc018c86990a261d896a8 100644 (file)
@@ -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;
     }