aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-02 23:04:06 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-02 23:04:06 +0000
commit5ebca793db6262386d7464d03cdaefeb5b640ad3 (patch)
treec95adf403283f0e3afdbd0c1d24b110e96e8d3e2
parentfe62d92b7bbaf73e576bec0c0b11cfa6c191aa87 (diff)
downloadexternal_llvm-5ebca793db6262386d7464d03cdaefeb5b640ad3.zip
external_llvm-5ebca793db6262386d7464d03cdaefeb5b640ad3.tar.gz
external_llvm-5ebca793db6262386d7464d03cdaefeb5b640ad3.tar.bz2
Inform SpillPlacement about blocks with defs.
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
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index c88bb53..6f4eb5b 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -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;