summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit057f9b68dee906a3d22aa951c5a0c5351aa15228 (patch)
treea75a1f22e9980fc3ea9a9e1dfb3c095dea9a17d4 /llvm/lib/CodeGen
parentaaa82ff9ad1d66e36ece8fb8f0440a71dc22262a (diff)
downloadbcm5719-llvm-057f9b68dee906a3d22aa951c5a0c5351aa15228.tar.gz
bcm5719-llvm-057f9b68dee906a3d22aa951c5a0c5351aa15228.zip
Inform SpillPlacement about blocks with defs.
This information is not used for anything yet. llvm-svn: 136741
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index c88bb536fde..6f4eb5baab4 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud