diff options
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBlockPlacement.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index c03ffdd3732..ffd88b7c8e3 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp @@ -1489,11 +1489,7 @@ MachineBlockPlacement::selectBestSuccessor( if (DupProb < BestProb) break; if (canTailDuplicateUnplacedPreds(BB, Succ, Chain, BlockFilter) - // If tail duplication gives us fallthrough when we otherwise wouldn't - // have it, that is a strict gain. - && (BestSucc.BB == nullptr - || isProfitableToTailDup(BB, Succ, BestProb, Chain, - BlockFilter))) { + && (isProfitableToTailDup(BB, Succ, BestProb, Chain, BlockFilter))) { DEBUG( dbgs() << " Candidate: " << getBlockName(Succ) << ", probability: " << DupProb |