From: Duncan Sands Date: Fri, 19 Nov 2010 08:33:20 +0000 (+0000) Subject: Simplify, no functionality change. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b0aed19f0f9ed62362c04f7e18e2ada686f4055;p=oota-llvm.git Simplify, no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119797 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 482c0fcbde8..62d8d173cb0 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -1035,9 +1035,7 @@ public: // If the replacing instruction is defined in the same loop as the original // instruction, or in a loop that contains it as an inner loop, then using // it as a replacement will not break LCSSA form. - Loop *FromLoop = getLoopFor(From->getParent()); - if (ToLoop->contains(FromLoop)) return true; - return false; + return ToLoop->contains(getLoopFor(From->getParent())); } };