[llvm-commits] [llvm] r136741 - /llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Aug 2 16:04:06 PDT 2011


Author: stoklund
Date: Tue Aug  2 18:04:06 2011
New Revision: 136741

URL: http://llvm.org/viewvc/llvm-project?rev=136741&view=rev
Log:
Inform SpillPlacement about blocks with defs.

This information is not used for anything yet.

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

Modified: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp?rev=136741&r1=136740&r2=136741&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Tue Aug  2 18:04:06 2011
@@ -676,6 +676,7 @@
     Intf.moveToBlock(BC.Number);
     BC.Entry = BI.LiveIn ? SpillPlacement::PrefReg : SpillPlacement::DontCare;
     BC.Exit = BI.LiveOut ? SpillPlacement::PrefReg : SpillPlacement::DontCare;
+    BC.ChangesValue = BI.FirstDef;
 
     if (!Intf.hasInterference())
       continue;





More information about the llvm-commits mailing list