Skip to content

Commit 9d870a2

Browse files
committed
Inline lambda
1 parent ba237ae commit 9d870a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)