From 4425035bfd891b90a85c34492cc55764c04756f4 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Sat, 30 Oct 2010 01:26:09 +0000 Subject: [PATCH] Print out register class of spilled register. llvm-svn: 117761 --- lib/CodeGen/InlineSpiller.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/InlineSpiller.cpp b/lib/CodeGen/InlineSpiller.cpp index 9a4da6c286d..0bae9dfb62f 100644 --- a/lib/CodeGen/InlineSpiller.cpp +++ b/lib/CodeGen/InlineSpiller.cpp @@ -352,10 +352,12 @@ void InlineSpiller::spill(LiveInterval *li, void InlineSpiller::spill(LiveRangeEdit &edit) { edit_ = &edit; - DEBUG(dbgs() << "Inline spilling " << edit.getParent() << "\n"); + assert(!edit.getParent().isStackSlot() && "Trying to spill a stack slot."); + DEBUG(dbgs() << "Inline spilling " + << mri_.getRegClass(edit.getReg())->getName() + << ':' << edit.getParent() << "\n"); assert(edit.getParent().isSpillable() && "Attempting to spill already spilled value."); - assert(!edit.getParent().isStackSlot() && "Trying to spill a stack slot."); if (split()) return;