diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-21 19:18:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-21 19:18:17 +0000 |
commit | 46520a25a435f6548e3a19e99ae153108a5037af (patch) | |
tree | d41f5c89d88078eb95eb8a2561a751a7428d5cc5 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | a4db3352f9c0c8ff6d25962904f2d57a82734057 (diff) | |
download | bcm5719-llvm-46520a25a435f6548e3a19e99ae153108a5037af.tar.gz bcm5719-llvm-46520a25a435f6548e3a19e99ae153108a5037af.zip |
Remove ScheduleDAG's SUnitMap altogether. Instead, use SDNode's NodeId
field, which is otherwise unused after instruction selection, as an index
into the SUnit array.
llvm-svn: 52583
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 995d877d9da..07f3221777d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -301,9 +301,9 @@ namespace llvm { static void addCustomGraphFeatures(ScheduleDAG *G, GraphWriter<ScheduleDAG*> &GW) { GW.emitSimpleNode(0, "plaintext=circle", "GraphRoot"); - if (G->DAG.getRoot().Val && - G->SUnitMap.find(G->DAG.getRoot().Val) != G->SUnitMap.end()) - GW.emitEdge(0, -1, G->SUnitMap[G->DAG.getRoot().Val], -1, ""); + const SDNode *N = G->DAG.getRoot().Val; + if (N && N->getNodeId() != -1) + GW.emitEdge(0, -1, &G->SUnits[N->getNodeId()], -1, ""); } }; } |