[llvm-commits] [llvm] r65157 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Dan Gohman gohman at apple.com
Fri Feb 20 13:05:23 PST 2009


Author: djg
Date: Fri Feb 20 15:05:23 2009
New Revision: 65157

URL: http://llvm.org/viewvc/llvm-project?rev=65157&view=rev
Log:
It's not necessary to check if Base is null here.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=65157&r1=65156&r2=65157&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Fri Feb 20 15:05:23 2009
@@ -1548,8 +1548,7 @@
   // a register for their base, full strength-reduction will increase
   // register pressure.
   for (unsigned i = 0, e = UsersToProcess.size(); i != e; ++i)
-    if (!UsersToProcess[i].Base ||
-        UsersToProcess[i].Base->isZero())
+    if (UsersToProcess[i].Base->isZero())
       return false;
 
   // Otherwise, go for it.





More information about the llvm-commits mailing list