summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-20 06:29:51 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-20 06:29:51 +0000
commitbcc99a83eebec42029bf7b3b4580dced379a7026 (patch)
tree0efbcf855b99cd65aca85e1f15f6c3e515bfc18b /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent76eca062eaf01f0223ba89c7370b84fc153d22a2 (diff)
downloadbcm5719-llvm-bcc99a83eebec42029bf7b3b4580dced379a7026.tar.gz
bcm5719-llvm-bcc99a83eebec42029bf7b3b4580dced379a7026.zip
Fix instruction numbering in debug output.
llvm-svn: 11655
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index ab40e6fdaec..b24f6c851c8 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
OpenPOWER on IntegriCloud