summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-08 21:13:03 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-08 21:13:03 +0000
commitf2b16dc84726755b3fb36d0ec2071b50863d2b8f (patch)
tree9583dc41314ddad50b3bf98330a0e2f172b8615c /llvm/lib/CodeGen/RegAllocGreedy.cpp
parent181376f29f9cb2301d565adc9a54a91e6107c4a0 (diff)
downloadbcm5719-llvm-f2b16dc84726755b3fb36d0ec2071b50863d2b8f.tar.gz
bcm5719-llvm-f2b16dc84726755b3fb36d0ec2071b50863d2b8f.zip
Add LiveIntervals::addKillFlags() to recompute kill flags after register allocation.
This is a lot easier than trying to get kill flags right during live range splitting and rematerialization. llvm-svn: 125113
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-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 4957847348e..4713da8a9af 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -1087,6 +1087,7 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
allocatePhysRegs();
addMBBLiveIns(MF);
+ LIS->addKillFlags();
// Run rewriter
{
OpenPOWER on IntegriCloud