1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Teach the graph viewer to handle register operands that are zero.

llvm-svn: 24421
This commit is contained in:
Chris Lattner 2005-11-19 06:58:46 +00:00
parent 3a1a1557e1
commit 72dc36da76

View File

@ -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());