[llvm-commits] [llvm] r106766 - /llvm/trunk/lib/CodeGen/SlotIndexes.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jun 24 10:31:07 PDT 2010
Author: stoklund
Date: Thu Jun 24 12:31:07 2010
New Revision: 106766
URL: http://llvm.org/viewvc/llvm-project?rev=106766&view=rev
Log:
Print the LSBs of a SlotIndex symbolically using letters referring to the
[L]oad, [u]se, [d]ef, or [S]tore slots.
This makes it easier to see if two indices refer to the same instruction,
avoiding mental mod 4 calculations.
Modified:
llvm/trunk/lib/CodeGen/SlotIndexes.cpp
Modified: llvm/trunk/lib/CodeGen/SlotIndexes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SlotIndexes.cpp?rev=106766&r1=106765&r2=106766&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SlotIndexes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SlotIndexes.cpp Thu Jun 24 12:31:07 2010
@@ -213,9 +213,11 @@
// Print a SlotIndex to a raw_ostream.
void SlotIndex::print(raw_ostream &os) const {
- os << getIndex();
+ os << entry().getIndex();
if (isPHI())
os << "*";
+ else
+ os << "LudS"[getSlot()];
}
// Dump a SlotIndex to stderr.
More information about the llvm-commits
mailing list