summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
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 /lib/CodeGen/RegAllocGreedy.cpp
parentfe62d92b7bbaf73e576bec0c0b11cfa6c191aa87 (diff)
downloadllvm-5ebca793db6262386d7464d03cdaefeb5b640ad3.tar.gz
llvm-5ebca793db6262386d7464d03cdaefeb5b640ad3.tar.bz2
llvm-5ebca793db6262386d7464d03cdaefeb5b640ad3.tar.xz
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
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-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 c88bb536fd..6f4eb5baab 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;