diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-19 05:25:46 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-19 05:25:46 +0000 |
commit | 20942dcd8634ad75091fe89669868cfebf74e869 (patch) | |
tree | ad09246c752d9222d40946d1144773d1439d7f80 /lib/CodeGen/RegAllocPBQP.cpp | |
parent | 791e629deef7e4a410e67527da26405916415d3a (diff) | |
download | external_llvm-20942dcd8634ad75091fe89669868cfebf74e869.zip external_llvm-20942dcd8634ad75091fe89669868cfebf74e869.tar.gz external_llvm-20942dcd8634ad75091fe89669868cfebf74e869.tar.bz2 |
Allow LiveRangeEdit to be created with a NULL parent.
The dead code elimination with callbacks is still useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index a284614..56c7241 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -550,7 +550,7 @@ bool RegAllocPBQP::mapPBQPToRegAlloc(const PBQPRAProblem &problem, } else if (problem.isSpillOption(vreg, alloc)) { vregsToAlloc.erase(vreg); SmallVector<LiveInterval*, 8> newSpills; - LiveRangeEdit LRE(lis->getInterval(vreg), newSpills, *mf, *lis, vrm); + LiveRangeEdit LRE(&lis->getInterval(vreg), newSpills, *mf, *lis, vrm); spiller->spill(LRE); DEBUG(dbgs() << "VREG " << vreg << " -> SPILLED (Cost: " |