aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/SCCP.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-31 00:51:24 +0000
committerChris Lattner <sabre@nondot.org>2002-01-31 00:51:24 +0000
commitfcc93d2c0aece88c79648be3b76f98ee9e29e826 (patch)
treed20b7580095741586fa7ec66ef4d10e029d8978b /lib/Transforms/Scalar/SCCP.cpp
parentfb1b3f119df25de495fcd53e675d6c9991f5664e (diff)
downloadexternal_llvm-fcc93d2c0aece88c79648be3b76f98ee9e29e826.tar.gz
external_llvm-fcc93d2c0aece88c79648be3b76f98ee9e29e826.tar.bz2
external_llvm-fcc93d2c0aece88c79648be3b76f98ee9e29e826.zip
MethodPass's are now guaranteed to not be run on external methods!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r--lib/Transforms/Scalar/SCCP.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp
index 9b2343c936..d6b7c40f34 100644
--- a/lib/Transforms/Scalar/SCCP.cpp
+++ b/lib/Transforms/Scalar/SCCP.cpp
@@ -511,7 +511,6 @@ void SCCP::OperandChangedState(User *U) {
// to prove whether a value is constant and whether blocks are used.
//
bool SCCPPass::doSCCP(Method *M) {
- if (M->isExternal()) return false;
SCCP S(M);
return S.doSCCP();
}