forked from OSchip/llvm-project
BranchRelaxation: Unique live ins when creating block
llvm-svn: 284018
This commit is contained in:
parent
d046332679
commit
691efe03bd
|
@ -379,6 +379,7 @@ bool BranchRelaxation::fixupUnconditionalBranch(MachineInstr &MI) {
|
|||
BranchBB->addLiveIn(LiveIn);
|
||||
}
|
||||
|
||||
BranchBB->sortUniqueLiveIns();
|
||||
BranchBB->addSuccessor(DestBB);
|
||||
MBB->replaceSuccessor(DestBB, BranchBB);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue