This patch adds a couple of interfaces to dump full or partial SelectionDAGs. The current code only prints the top-level SDNode. This patch makes it much easier to understand CannotYetSelect errors and those sorts of things. In particular, it helped me track down PR6019. Any objections to committing? -Dave -------------- next part -------------- A non-text attachment was scrubbed... Name: selectiondagdump.patch Type: text/x-diff Size: 3807 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100113/86c18306/attachment.patch>
On Wednesday 13 January 2010 16:10, David Greene wrote:> This patch adds a couple of interfaces to dump full or partial > SelectionDAGs. The current code only prints the top-level > SDNode. This patch makes it much easier to understand > CannotYetSelect errors and those sorts of things. In particular, > it helped me track down PR6019. > > Any objections to committing?Ping? -Dave
On Jan 15, 2010, at 6:57 AM, David Greene wrote:> On Wednesday 13 January 2010 16:10, David Greene wrote: >> This patch adds a couple of interfaces to dump full or partial >> SelectionDAGs. The current code only prints the top-level >> SDNode. This patch makes it much easier to understand >> CannotYetSelect errors and those sorts of things. In particular, >> it helped me track down PR6019. >> >> Any objections to committing? > > Ping?Is it ever desirable to pass false to the "limit" argument? Otherwise this looks ok. Dan
Seemingly Similar Threads
- [LLVMdev] [PATCH] SelectionDAG Debugging
- [LLVMdev] [PATCH] SelectionDAG Debugging
- [LLVMdev] [llvm-commits] [llvm] r65296 - in /llvm/trunk: include/llvm/CodeGen/ lib/CodeGen/SelectionDAG/ lib/Target/CellSPU/ lib/Target/PowerPC/ lib/Target/X86/ test/CodeGen/X86/
- [LLVMdev] Metadata
- Accessing the associated LLVM IR Instruction for an SDNode used in instruction selection (back end)