SimplifyCFG.cpp - remove dead early-return code added at rGcc63203908da. NFCI.

We've already checked that ScanIdx == 0 a few lines above.
This commit is contained in:
Simon Pilgrim 2021-06-06 14:15:11 +01:00
parent 5fc8cdcb03
commit 9ced408fe9
1 changed files with 0 additions and 4 deletions

View File

@ -2059,10 +2059,6 @@ static bool SinkCommonCodeFromPredecessors(BasicBlock *BB,
return NumPHIInsts <= 1;
};
// If no instructions can be sunk, early-return.
if (ScanIdx == 0)
return false;
// We've determined that we are going to sink last ScanIdx instructions,
// and recorded them in InstructionsToSink. Now, some instructions may be
// unprofitable to sink. But that determination depends on the instructions