[llvm-commits] [llvm] r50473 - /llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp
Owen Anderson
resistor at mac.com
Wed Apr 30 00:16:33 PDT 2008
Author: resistor
Date: Wed Apr 30 02:16:33 2008
New Revision: 50473
URL: http://llvm.org/viewvc/llvm-project?rev=50473&view=rev
Log:
This condition got inverted accidentally.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp?rev=50473&r1=50472&r2=50473&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopDeletion.cpp Wed Apr 30 02:16:33 2008
@@ -179,7 +179,7 @@
// Don't remove loops for which we can't solve the trip count.
// They could be infinite, in which case we'd be changing program behavior.
- if (L->getTripCount())
+ if (!L->getTripCount())
return false;
// Loops with multiple exits or exits that don't dominate the latch
More information about the llvm-commits
mailing list