Include the alignment value when displaying ConstantPoolSDNodes.
authorDan Gohman <gohman@apple.com>
Tue, 16 Sep 2008 21:18:22 +0000 (21:18 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 16 Sep 2008 21:18:22 +0000 (21:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56250 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

index aca115fd84e735a27935f8575d149a34705890a4..8e3247fb673e2c89a66c0ae4837ab2a11960a63e 100644 (file)
@@ -158,6 +158,7 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
         Op += '>';
       }
     }
+    Op += " A=" + itostr(1 << CP->getAlignment());
   } else if (const BasicBlockSDNode *BBDN = dyn_cast<BasicBlockSDNode>(Node)) {
     Op = "BB: ";
     const Value *LBB = (const Value*)BBDN->getBasicBlock()->getBasicBlock();