summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2008-10-27 21:56:29 +0000
committerDavid Greene <greened@obbligato.org>2008-10-27 21:56:29 +0000
commitce2a938186bdf15adfa60d743d48854973b8d4cc (patch)
treea82b32137631acb3213d6514785c18e1861f1ac3 /llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
parentbf26368255d282aec6f5675152b03b1ff24d9ef7 (diff)
downloadbcm5719-llvm-ce2a938186bdf15adfa60d743d48854973b8d4cc.tar.gz
bcm5719-llvm-ce2a938186bdf15adfa60d743d48854973b8d4cc.zip
Have TableGen emit setSubgraphColor calls under control of a -gen-debug
flag. Then in a debugger developers can set breakpoints at these calls to see waht is about to be selected and what the resulting subgraph looks like. This really helps when debugging instruction selection. llvm-svn: 58278
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
index e4bd152885b..e0ae5564ed8 100644
--- a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
@@ -230,7 +230,7 @@ void AlphaDAGToDAGISel::InstructionSelect() {
DEBUG(BB->dump());
// Select target instructions for the DAG.
- SelectRoot();
+ SelectRoot(*CurDAG);
CurDAG->RemoveDeadNodes();
}
OpenPOWER on IntegriCloud