Skip to content

Commit 6d80833

Browse files
committed
Print out register class of spilled register.
llvm-svn: 117761
1 parent 9351315 commit 6d80833

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/CodeGen/InlineSpiller.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,12 @@ void InlineSpiller::spill(LiveInterval *li,
352352

353353
void InlineSpiller::spill(LiveRangeEdit &edit) {
354354
edit_ = &edit;
355-
DEBUG(dbgs() << "Inline spilling " << edit.getParent() << "\n");
355+
assert(!edit.getParent().isStackSlot() && "Trying to spill a stack slot.");
356+
DEBUG(dbgs() << "Inline spilling "
357+
<< mri_.getRegClass(edit.getReg())->getName()
358+
<< ':' << edit.getParent() << "\n");
356359
assert(edit.getParent().isSpillable() &&
357360
"Attempting to spill already spilled value.");
358-
assert(!edit.getParent().isStackSlot() && "Trying to spill a stack slot.");
359361

360362
if (split())
361363
return;

0 commit comments

Comments
 (0)