diff options
author | David Greene <greened@obbligato.org> | 2008-10-27 21:56:29 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2008-10-27 21:56:29 +0000 |
commit | 8ad4c00c00233acb8a3395098e2b575cc34de46b (patch) | |
tree | 5df349b3bbb9c33edd4a4b5a52f2ca8f74d8fc5f /lib/Target/Sparc/SparcISelDAGToDAG.cpp | |
parent | 9a40d3361ac29fd3c9e0b4a0aa5c7845cc46ec25 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Sparc/SparcISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 66e143de3f..ceba75d788 100644 --- a/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/lib/Target/Sparc/SparcISelDAGToDAG.cpp @@ -70,7 +70,7 @@ void SparcDAGToDAGISel::InstructionSelect() { DEBUG(BB->dump()); // Select target instructions for the DAG. - SelectRoot(); + SelectRoot(*CurDAG); CurDAG->RemoveDeadNodes(); } |