[llvm] r284018 - BranchRelaxation: Unique live ins when creating block

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 08:32:04 PDT 2016


Author: arsenm
Date: Wed Oct 12 10:32:04 2016
New Revision: 284018

URL: http://llvm.org/viewvc/llvm-project?rev=284018&view=rev
Log:
BranchRelaxation: Unique live ins when creating block

Modified:
    llvm/trunk/lib/CodeGen/BranchRelaxation.cpp

Modified: llvm/trunk/lib/CodeGen/BranchRelaxation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchRelaxation.cpp?rev=284018&r1=284017&r2=284018&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/BranchRelaxation.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchRelaxation.cpp Wed Oct 12 10:32:04 2016
@@ -379,6 +379,7 @@ bool BranchRelaxation::fixupUnconditiona
         BranchBB->addLiveIn(LiveIn);
     }
 
+    BranchBB->sortUniqueLiveIns();
     BranchBB->addSuccessor(DestBB);
     MBB->replaceSuccessor(DestBB, BranchBB);
   }




More information about the llvm-commits mailing list