From: Matt Arsenault Date: Wed, 12 Oct 2016 15:32:04 +0000 (+0000) Subject: BranchRelaxation: Unique live ins when creating block X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14cd5a9fd86ac56423f95dd3978344fddb3ba936;p=llvm BranchRelaxation: Unique live ins when creating block git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284018 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BranchRelaxation.cpp b/lib/CodeGen/BranchRelaxation.cpp index 1d76831d04a..a36906540a2 100644 --- a/lib/CodeGen/BranchRelaxation.cpp +++ b/lib/CodeGen/BranchRelaxation.cpp @@ -379,6 +379,7 @@ bool BranchRelaxation::fixupUnconditionalBranch(MachineInstr &MI) { BranchBB->addLiveIn(LiveIn); } + BranchBB->sortUniqueLiveIns(); BranchBB->addSuccessor(DestBB); MBB->replaceSuccessor(DestBB, BranchBB); }