]> granicus.if.org Git - llvm/commitdiff
BranchRelaxation: Unique live ins when creating block
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 12 Oct 2016 15:32:04 +0000 (15:32 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 12 Oct 2016 15:32:04 +0000 (15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284018 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BranchRelaxation.cpp

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