diff options
author | David Greene <greened@obbligato.org> | 2010-01-15 19:43:23 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-01-15 19:43:23 +0000 |
commit | ac931c011fae9392b5d68e763ec64ee25181c267 (patch) | |
tree | ecc7b06f8b53b117b137b982a3131ab64c2abc76 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 54482b472a888c9efe003ad694ecf47b21878f0e (diff) |
Add some debug routines to SelectionDAG to dump full DAGs.
print/dumpWithDepth allows one to dump a DAG up to N levels deep.
dump/printWithFullDepth prints the whole DAG, subject to a depth limit
on 100 in the default case (to prevent infinite recursion).
Have CannotYetSelect to a dumpWithFullDepth so it is clearer exactly
what the non-matching DAG looks like.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 9ac8f83ad4..e53966426c 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1426,7 +1426,7 @@ void SelectionDAGISel::CannotYetSelect(SDNode *N) { std::string msg; raw_string_ostream Msg(msg); Msg << "Cannot yet select: "; - N->print(Msg, CurDAG); + N->printWithFullDepth(Msg, CurDAG); llvm_report_error(Msg.str()); } |