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:
b89175f
)
Teach the graph viewer to handle register operands that are zero.
author
Chris Lattner
<sabre@nondot.org>
Sat, 19 Nov 2005 06:58:46 +0000
(06:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 19 Nov 2005 06:58:46 +0000
(06:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24421
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 2c2bc21446311fa81e7fff44fa11f7dd7c587386..73535809333f47e65b06594518efaf439301512e 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@
-82,7
+82,7
@@
std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
Op += LBB->getName();
//Op += " " + (const void*)BBDN->getBasicBlock();
} else if (const RegisterSDNode *R = dyn_cast<RegisterSDNode>(Node)) {
- if (G && MRegisterInfo::isPhysicalRegister(R->getReg())) {
+ if (G &&
R->getReg() != 0 &&
MRegisterInfo::isPhysicalRegister(R->getReg())) {
Op = Op + " " + G->getTarget().getRegisterInfo()->getName(R->getReg());
} else {
Op += " #" + utostr(R->getReg());