forked from OSchip/llvm-project
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. llvm-svn: 106766
This commit is contained in:
parent
8a84cd57ae
commit
a612d7c012
|
@ -213,9 +213,11 @@ void SlotIndexes::dump() const {
|
|||
|
||||
// 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.
|
||||
|
|
Loading…
Reference in New Issue