From: Simon Pilgrim Date: Sun, 6 Jun 2021 13:15:11 +0000 (+0100) Subject: SimplifyCFG.cpp - remove dead early-return code added at rGcc63203908da. NFCI. X-Git-Tag: llvmorg-14-init~4744 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ced408fe97478309cb19ca241009ade4ad6315c;p=platform%2Fupstream%2Fllvm.git SimplifyCFG.cpp - remove dead early-return code added at rGcc63203908da. NFCI. We've already checked that ScanIdx == 0 a few lines above. --- diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index c4c828c..ee86326 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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