aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-06-06 14:15:11 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-06-06 14:15:11 +0100
commit9ced408fe97478309cb19ca241009ade4ad6315c (patch)
tree2fbaaecdc5a86bdd5ae5de56a7cd1240ef832889 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent5fc8cdcb03e380e6193464eef499d373dcde3708 (diff)
downloadllvm-9ced408fe97478309cb19ca241009ade4ad6315c.zip
llvm-9ced408fe97478309cb19ca241009ade4ad6315c.tar.gz
llvm-9ced408fe97478309cb19ca241009ade4ad6315c.tar.bz2
SimplifyCFG.cpp - remove dead early-return code added at rGcc63203908da. NFCI.
We've already checked that ScanIdx == 0 a few lines above.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 0 insertions, 4 deletions
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