[llvm] 9ced408 - SimplifyCFG.cpp - remove dead early-return code added at rGcc63203908da. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 6 06:17:08 PDT 2021
Author: Simon Pilgrim
Date: 2021-06-06T14:15:11+01:00
New Revision: 9ced408fe97478309cb19ca241009ade4ad6315c
URL: https://github.com/llvm/llvm-project/commit/9ced408fe97478309cb19ca241009ade4ad6315c
DIFF: https://github.com/llvm/llvm-project/commit/9ced408fe97478309cb19ca241009ade4ad6315c.diff
LOG: SimplifyCFG.cpp - remove dead early-return code added at rGcc63203908da. NFCI.
We've already checked that ScanIdx == 0 a few lines above.
Added:
Modified:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index c4c828cef402..ee8632621b5a 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
More information about the llvm-commits
mailing list