projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deca052
)
Print the LSBs of a SlotIndex symbolically using letters referring to the
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Thu, 24 Jun 2010 17:31:07 +0000
(17:31 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Thu, 24 Jun 2010 17:31:07 +0000
(17:31 +0000)
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106766
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SlotIndexes.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SlotIndexes.cpp
b/lib/CodeGen/SlotIndexes.cpp
index 6110ef5d2f058b084dc9f368ac7799b5300db004..7a227cf02d57d2526c3cbceb6e3d1fda20b0bbb9 100644
(file)
--- a/
lib/CodeGen/SlotIndexes.cpp
+++ b/
lib/CodeGen/SlotIndexes.cpp
@@
-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.