Stack Coloring: Debug prints to print the slot number and not the array index.
authorNadav Rotem <nrotem@apple.com>
Mon, 10 Sep 2012 13:17:58 +0000 (13:17 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 10 Sep 2012 13:17:58 +0000 (13:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163509 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StackColoring.cpp

index 45c9af21bb2e8e085bc23fd0509ed47082164eb5..10ebe5126e48386a59a2670d9c578b8d8cf6a136 100644 (file)
@@ -646,7 +646,8 @@ bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
           First->MergeRangesInAsValue(*Second, First->getValNumInfo(0));
           SlotRemap[SecondSlot] = FirstSlot;
           SortedSlots[J] = -1;
-          DEBUG(dbgs()<<"Merging #"<<I<<" and slots #"<<J<<" together.\n");
+          DEBUG(dbgs()<<"Merging #"<<FirstSlot<<" and slots #"<<
+                SecondSlot<<" together.\n");
           unsigned MaxAlignment = std::max(MFI->getObjectAlignment(FirstSlot),
                                            MFI->getObjectAlignment(SecondSlot));