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) {
36603660 // an unconditional branch, try to move the store to the successor block.
36613661
36623662 auto GetLastSinkableStore = [](BasicBlock::iterator BBI) {
3663- auto IsNoopInstrForStoreMerging = [](BasicBlock::iterator BBI) {
3664- return BBI->isDebugOrPseudoInst ();
3665- };
3666-
36673663 BasicBlock::iterator FirstInstr = BBI->getParent ()->begin ();
36683664 do {
36693665 if (BBI != FirstInstr)
36703666 --BBI;
3671- } while (BBI != FirstInstr && IsNoopInstrForStoreMerging ( BBI));
3667+ } while (BBI != FirstInstr && BBI-> isDebugOrPseudoInst ( ));
36723668
36733669 return dyn_cast<StoreInst>(BBI);
36743670 };
You can’t perform that action at this time.
0 commit comments