diff options
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index d8c1b3d4da..8dbb56809b 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -328,6 +328,9 @@ unsigned RAGreedy::trySplit(LiveInterval &VirtReg, AllocationOrder &Order, SplitEditor(*SA, *LIS, *VRM, *DomTree, LREdit) .splitAroundLoop(Loop->getLoop()); + if (VerifyEnabled) + MF->verify(this); + // We have new split regs, don't assign anything. return 0; } @@ -400,6 +403,9 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) { << ((Value*)mf.getFunction())->getName() << '\n'); MF = &mf; + if (VerifyEnabled) + MF->verify(this); + RegAllocBase::init(getAnalysis<VirtRegMap>(), getAnalysis<LiveIntervals>()); DomTree = &getAnalysis<MachineDominatorTree>(); ReservedRegs = TRI->getReservedRegs(*MF); |