BranchRelaxation: Unique live ins when creating block

llvm-svn: 284018
This commit is contained in:
Matt Arsenault 2016-10-12 15:32:04 +00:00
parent d046332679
commit 691efe03bd
1 changed files with 1 additions and 0 deletions

View File

@ -379,6 +379,7 @@ bool BranchRelaxation::fixupUnconditionalBranch(MachineInstr &MI) {
BranchBB->addLiveIn(LiveIn);
}
BranchBB->sortUniqueLiveIns();
BranchBB->addSuccessor(DestBB);
MBB->replaceSuccessor(DestBB, BranchBB);
}