Inform SpillPlacement about blocks with defs.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 2 Aug 2011 23:04:06 +0000 (23:04 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 2 Aug 2011 23:04:06 +0000 (23:04 +0000)
This information is not used for anything yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136741 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocGreedy.cpp

index c88bb536fdee55903091e729087459753e9d37a0..6f4eb5baab4bb8273dec19fdd66a3bc210eed4b8 100644 (file)
@@ -676,6 +676,7 @@ bool RAGreedy::addSplitConstraints(InterferenceCache::Cursor Intf,
     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;