aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-11 08:47:47 +0000
committerChris Lattner <sabre@nondot.org>2006-02-11 08:47:47 +0000
commitb24ce3a2a8be3965a00695bfecb8b79e3f71b295 (patch)
tree9777e1935193e94c7983014bd8c395cdfe0aad06 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent4698e4f5fe0ca72b2aa19c2ef67778f83634a132 (diff)
downloadllvm-b24ce3a2a8be3965a00695bfecb8b79e3f71b295.zip
llvm-b24ce3a2a8be3965a00695bfecb8b79e3f71b295.tar.gz
llvm-b24ce3a2a8be3965a00695bfecb8b79e3f71b295.tar.bz2
revert my previous change, it exposed other problems.
llvm-svn: 26121
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
index c76e501..a8aa0e0 100644
--- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -169,7 +169,7 @@ bool LoopSimplify::ProcessLoop(Loop *L) {
PI != PE; ++PI)
// Must be exactly this loop: no subloops, parent loops, or non-loop preds
// allowed.
- if (LI.getLoopFor(*PI) != L) {
+ if (!L->contains(*PI)) {
RewriteLoopExitBlock(L, ExitBlock);
NumInserted++;
Changed = true;