From: Chris Lattner Date: Sat, 11 Feb 2006 08:47:47 +0000 (+0000) Subject: revert my previous change, it exposed other problems. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5077c7be92d310abfa8667bebc35d36ec6207d2a;p=oota-llvm.git revert my previous change, it exposed other problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26121 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index c76e501af82..a8aa0e0bbcc 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/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;