diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 52cef5b89ce..89c53e8c1ba 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1123,6 +1123,8 @@ void SDNode::dump() const { } else if (const ExternalSymbolSDNode *ES = dyn_cast(this)) { std::cerr << "'" << ES->getSymbol() << "'"; + } else if (const MVTSDNode *M = dyn_cast(this)) { + std::cerr << " - Ty = " << MVT::getValueTypeString(M->getExtraValueType()); } } diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index f398568130d..00f86577562 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -90,6 +90,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, } else if (const ExternalSymbolSDNode *ES = dyn_cast(Node)) { Op += "'" + std::string(ES->getSymbol()) + "'"; + } else if (const MVTSDNode *M = dyn_cast(Node)) { + Op = Op + "ty=" + MVT::getValueTypeString(M->getExtraValueType()); } return Op; }