diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-31 00:51:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-31 00:51:24 +0000 |
commit | fcc93d2c0aece88c79648be3b76f98ee9e29e826 (patch) | |
tree | d20b7580095741586fa7ec66ef4d10e029d8978b /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | fb1b3f119df25de495fcd53e675d6c9991f5664e (diff) |
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/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 48faffebf4..d06c19787f 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -185,8 +185,6 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) { } bool InductionVariableSimplify::doit(Method *M, cfg::LoopInfo &Loops) { - if (M->isExternal()) return false; - // Induction Variables live in the header nodes of the loops of the method... return reduce_apply_bool(Loops.getTopLevelLoops().begin(), Loops.getTopLevelLoops().end(), |