From 1ca23d98374d37e73c3394ac810c1e45107a3a5a Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 30 Mar 2018 14:29:15 +0000 Subject: [PATCH] [Hexagon] Pass pointer to SelectionDAG to dump functions llvm-svn: 328864 --- llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp index 9ba1a6a48385..b2e9cc620d15 100644 --- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp @@ -1911,13 +1911,13 @@ SDValue HexagonDAGToDAGISel::balanceSubTree(SDNode *N, bool TopLevel) { DEBUG(dbgs() << "--> No need to balance root (Weight=" << Weight << " Height=" << RootHeights[N] << "): "); - DEBUG(N->dump()); + DEBUG(N->dump(CurDAG)); return SDValue(N, 0); } DEBUG(dbgs() << "** Balancing root node: "); - DEBUG(N->dump()); + DEBUG(N->dump(CurDAG)); unsigned NOpcode = N->getOpcode(); @@ -2080,7 +2080,7 @@ SDValue HexagonDAGToDAGISel::balanceSubTree(SDNode *N, bool TopLevel) { getTargetLowering()->isOffsetFoldingLegal(GANode)) { DEBUG(dbgs() << "--> Combining GA and offset (" << Offset->getSExtValue() << "): "); - DEBUG(GANode->dump()); + DEBUG(GANode->dump(CurDAG)); SDValue NewTGA = CurDAG->getTargetGlobalAddress(GANode->getGlobal(), SDLoc(GA.Value), @@ -2243,7 +2243,7 @@ void HexagonDAGToDAGISel::rebalanceAddressTrees() { continue; DEBUG(dbgs() << "** Rebalancing address calculation in node: "); - DEBUG(N->dump()); + DEBUG(N->dump(CurDAG)); // FindRoots SmallVector Worklist; @@ -2284,7 +2284,7 @@ void HexagonDAGToDAGISel::rebalanceAddressTrees() { NewBasePtr, N->getOperand(3)); DEBUG(dbgs() << "--> Final node: "); - DEBUG(N->dump()); + DEBUG(N->dump(CurDAG)); } CurDAG->RemoveDeadNodes();