Delete this code, which is no longer needed.
authorDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 08:00:22 +0000 (08:00 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 08:00:22 +0000 (08:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101033 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 7882a9aefa24121ab504dd3ed6b27aa6fdee7a33..19f78f424ce9a830ad4cf497f95502d88d56137c 100644 (file)
@@ -2907,10 +2907,6 @@ LSRInstance::AdjustInsertPositionForExpand(BasicBlock::iterator IP,
         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