From bcc99a83eebec42029bf7b3b4580dced379a7026 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Fri, 20 Feb 2004 06:29:51 +0000 Subject: [PATCH] Fix instruction numbering in debug output. llvm-svn: 11655 --- llvm/lib/CodeGen/RegAllocLinearScan.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index ab40e6fdaec0..b24f6c851c8c 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -704,7 +704,8 @@ void RA::addSpillCode(IntervalPtrs::value_type li, int slot) // ignore deleted instructions while (!li_->getInstructionFromIndex(index)) index += 2; mi = li_->getInstructionFromIndex(index); - DEBUG(std::cerr << "\t\t\t\texamining: \t\t\t\t\t" << index << '\t'; + DEBUG(std::cerr << "\t\t\t\texamining: \t\t\t\t\t" + << LiveIntervals::getBaseIndex(index) << '\t'; mi->print(std::cerr, *tm_)); // if it is used in this instruction load it