[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 18 22:58:58 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGPrinter.cpp updated: 1.25 -> 1.26
---
Log message:
Teach the graph viewer to handle register operands that are zero.
---
Diffs of the changes: (+1 -1)
SelectionDAGPrinter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.25 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.26
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.25 Fri Sep 30 19:15:11 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Sat Nov 19 00:58:46 2005
@@ -82,7 +82,7 @@
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());
More information about the llvm-commits
mailing list