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

Dan Gohman gohman at apple.com
Mon Apr 12 01:00:22 PDT 2010


Author: djg
Date: Mon Apr 12 03:00:22 2010
New Revision: 101033

URL: http://llvm.org/viewvc/llvm-project?rev=101033&view=rev
Log:
Delete this code, which is no longer needed.

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=101033&r1=101032&r2=101033&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Mon Apr 12 03:00:22 2010
@@ -2907,10 +2907,6 @@
         BB = DT.findNearestCommonDominator(BB, ExitingBlocks[i]);
       Inputs.push_back(BB->getTerminator());
     }
-
-    // Be dominated by the loop latch, if it's unique.
-    if (BasicBlock *Latch = PIL->getLoopLatch())
-      Inputs.push_back(prior(BasicBlock::iterator(Latch->getTerminator())));
   }
 
   // Then, climb up the immediate dominator tree as far as we can go while





More information about the llvm-commits mailing list