We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7036e commit 3694e61Copy full SHA for 3694e61
llvm/lib/CodeGen/BranchRelaxation.cpp
@@ -501,8 +501,8 @@ bool BranchRelaxation::fixupConditionalBranch(MachineInstr &MI) {
501
//
502
// Just remove conditional branch.
503
if (TBB == FBB) {
504
- BlockInfo[MBB->getNumber()].Size -= TII->getInstSizeInBytes(MI);
505
- MI.eraseFromParent();
+ removeBranch(MBB);
+ insertUncondBranch(MBB, TBB);
506
return true;
507
}
508
// We need to split the basic block here to obtain two long-range
0 commit comments