[llvm-commits] [llvm] r119797 - /llvm/trunk/include/llvm/Analysis/LoopInfo.h

Duncan Sands baldrick at free.fr
Fri Nov 19 00:33:20 PST 2010


Author: baldrick
Date: Fri Nov 19 02:33:20 2010
New Revision: 119797

URL: http://llvm.org/viewvc/llvm-project?rev=119797&view=rev
Log:
Simplify, no functionality change.

Modified:
    llvm/trunk/include/llvm/Analysis/LoopInfo.h

Modified: llvm/trunk/include/llvm/Analysis/LoopInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopInfo.h?rev=119797&r1=119796&r2=119797&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopInfo.h Fri Nov 19 02:33:20 2010
@@ -1035,9 +1035,7 @@
     // 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()));
   }
 };
 





More information about the llvm-commits mailing list