aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-22 15:12:36 +0000
committerChris Lattner <sabre@nondot.org>2004-04-22 15:12:36 +0000
commitb4782d13d1444d9d18c0a681292cf0d0a32cf3ef (patch)
tree9252eaf89eb10458732662d41d13297557ad4fc5 /lib/Transforms/Scalar/IndVarSimplify.cpp
parent7d221c53e521edd36cc1d9f42fdb4d3201d5e014 (diff)
Disable a previous patch that was causing indvars to loop infinitely :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 6ffe80a74f..d452ca1e18 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -454,6 +454,7 @@ void IndVarSimplify::runOnLoop(Loop *L) {
Changed = true;
}
+#if 0
// Now replace all derived expressions in the loop body with simpler
// expressions.
for (unsigned i = 0, e = L->getBlocks().size(); i != e; ++i)
@@ -478,6 +479,7 @@ void IndVarSimplify::runOnLoop(Loop *L) {
}
}
}
+#endif
DeleteTriviallyDeadInstructions(DeadInsts);
}