aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-02-19 01:54:37 +0000
committerDale Johannesen <dalej@apple.com>2010-02-19 01:54:37 +0000
commitefd9e9505167a398ba3c4924b09a47bd4d688e51 (patch)
treebe5a0bd785f0fde73eeabc929bd9b71f05a0157a /lib/Transforms/Scalar/IndVarSimplify.cpp
parent97a35fc3a744c905e1aeed8542fae366c7940f95 (diff)
downloadexternal_llvm-efd9e9505167a398ba3c4924b09a47bd4d688e51.tar.gz
external_llvm-efd9e9505167a398ba3c4924b09a47bd4d688e51.tar.bz2
external_llvm-efd9e9505167a398ba3c4924b09a47bd4d688e51.zip
Revert 96626, which causes build failure on ppc Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96653 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 60492b0283..e699261b27 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -246,13 +246,6 @@ void IndVarSimplify::RewriteLoopExitValues(Loop *L,
if (!PN->getType()->isIntegerTy() && !PN->getType()->isPointerTy())
continue;
- // It's necessary to tell ScalarEvolution about this explicitly so that
- // it can walk the def-use list and forget all SCEVs, as it may not be
- // watching the PHI itself. Once the new exit value is in place, there
- // may not be a def-use connection between the loop and every instruction
- // which got a SCEVAddRecExpr for that loop.
- SE->forgetValue(PN);
-
// Iterate over all of the values in all the PHI nodes.
for (unsigned i = 0; i != NumPreds; ++i) {
// If the value being merged in is not integer or is not defined