[Hexagon] Pass pointer to SelectionDAG to dump functions

llvm-svn: 328864
This commit is contained in:
Krzysztof Parzyszek 2018-03-30 14:29:15 +00:00
parent 8ee3b06f82
commit 1ca23d9837
1 changed files with 5 additions and 5 deletions

View File

@ -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<SDNode *, 4> 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();