1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

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 81454c748f
commit f80a9a7346

View File

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