mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
Fix longstanding thinko: don't exclude
predessors of exit blocks from tail merging consideration. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a45a9e416f
commit
62bc8a4486
@ -697,8 +697,7 @@ bool BranchFolder::TailMergeBlocks(MachineFunction &MF) {
|
||||
// transformations.)
|
||||
|
||||
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
|
||||
if (!I->succ_empty() && I->pred_size() >= 2 &&
|
||||
I->pred_size() < TailMergeThreshold) {
|
||||
if (I->pred_size() >= 2 && I->pred_size() < TailMergeThreshold) {
|
||||
MachineBasicBlock *IBB = I;
|
||||
MachineBasicBlock *PredBB = prior(I);
|
||||
MergePotentials.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user