llvm.org GIT mirror llvm / f6dff84
Force the greedy register allocator to always use the inline spiller. Soon, RegAllocGreedy will start splitting live ranges, and then deferred spilling won't work anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121591 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 9 years ago
3 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
310310 getAnalysis());
311311
312312 ReservedRegs = TRI->getReservedRegs(*MF);
313 SpillerInstance.reset(createSpiller(*this, *MF, *VRM));
313 SpillerInstance.reset(createInlineSpiller(*this, *MF, *VRM));
314314 allocatePhysRegs();
315315 addMBBLiveIns(MF);
316316
230230
231231 } // end anonymous namespace
232232
233 namespace llvm {
234 Spiller *createInlineSpiller(MachineFunctionPass &pass,
235 MachineFunction &mf,
236 VirtRegMap &vrm);
237 }
238
239233 llvm::Spiller* llvm::createSpiller(MachineFunctionPass &pass,
240234 MachineFunction &mf,
241235 VirtRegMap &vrm) {
4343 Spiller* createSpiller(MachineFunctionPass &pass,
4444 MachineFunction &mf,
4545 VirtRegMap &vrm);
46
47 /// Create and return a spiller that will insert spill code directly instead
48 /// of deferring though VirtRegMap.
49 Spiller *createInlineSpiller(MachineFunctionPass &pass,
50 MachineFunction &mf,
51 VirtRegMap &vrm);
52
4653 }
4754
4855 #endif