mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 01:14:12 +00:00
Teach the graph viewer to handle register operands that are zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b89175feff
commit
44fa764355
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user