File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -3660,15 +3660,11 @@ Instruction *InstCombinerImpl::visitUnconditionalBranchInst(BranchInst &BI) {
3660
3660
// an unconditional branch, try to move the store to the successor block.
3661
3661
3662
3662
auto GetLastSinkableStore = [](BasicBlock::iterator BBI) {
3663
- auto IsNoopInstrForStoreMerging = [](BasicBlock::iterator BBI) {
3664
- return BBI->isDebugOrPseudoInst ();
3665
- };
3666
-
3667
3663
BasicBlock::iterator FirstInstr = BBI->getParent ()->begin ();
3668
3664
do {
3669
3665
if (BBI != FirstInstr)
3670
3666
--BBI;
3671
- } while (BBI != FirstInstr && IsNoopInstrForStoreMerging ( BBI));
3667
+ } while (BBI != FirstInstr && BBI-> isDebugOrPseudoInst ( ));
3672
3668
3673
3669
return dyn_cast<StoreInst>(BBI);
3674
3670
};
You can’t perform that action at this time.
0 commit comments