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 | e5bbe37950191462794fde6de4703e7d664dbf67 (patch) | |
| tree | 19097be12beee86dfa9c8df497a2102b9ea5d326 /llvm/lib/CodeGen/RegAllocBasic.cpp | |
| parent | 8f69b1af3d0d8ceb15893ca68a8bb4395d0d1efe (diff) | |
| download | bcm5719-llvm-e5bbe37950191462794fde6de4703e7d664dbf67.tar.gz bcm5719-llvm-e5bbe37950191462794fde6de4703e7d664dbf67.zip | |
Allow LiveRangeEdit to be created with a NULL parent.
The dead code elimination with callbacks is still useful.
llvm-svn: 157100
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocBasic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp index 77ee3148f31..6b01ccb3094 100644 --- a/llvm/lib/CodeGen/RegAllocBasic.cpp +++ b/llvm/lib/CodeGen/RegAllocBasic.cpp @@ -187,7 +187,7 @@ void RABasic::spillReg(LiveInterval& VirtReg, unsigned PhysReg, unassign(SpilledVReg, PhysReg); // Spill the extracted interval. - LiveRangeEdit LRE(SpilledVReg, SplitVRegs, *MF, *LIS, VRM); + LiveRangeEdit LRE(&SpilledVReg, SplitVRegs, *MF, *LIS, VRM); spiller().spill(LRE); } // After extracting segments, the query's results are invalid. But keep the @@ -287,7 +287,7 @@ unsigned RABasic::selectOrSplit(LiveInterval &VirtReg, DEBUG(dbgs() << "spilling: " << VirtReg << '\n'); if (!VirtReg.isSpillable()) return ~0u; - LiveRangeEdit LRE(VirtReg, SplitVRegs, *MF, *LIS, VRM); + LiveRangeEdit LRE(&VirtReg, SplitVRegs, *MF, *LIS, VRM); spiller().spill(LRE); // The live virtual register requesting allocation was spilled, so tell |

