DAG dump readability

Mikael Lyngvig mikael at lyngvig.org
Fri Dec 6 04:37:51 PST 2013


Perhaps you should consider to use #ID instead of NodeID (#43 instead of
Node43) as it appears that there may be quite a few nodes in each line and
you thereby can save three characters per node.  But as you are already
saving a few characters per node, it may be a silly suggestion.  Just my
two pennies.


-- Mikael


2013/12/6 Stepan Dyatkovskiy <stpworld at narod.ru>

> Hi all!
> I propose DAG dump improvement (for -debug output). To be short just look
> at example below:
>
> Now:
>   0x3adf4e0: v4i32,ch = load 0x3ab64c0, 0x3ab5680, 0x3abaee0 <LD16[bitcast
> ([4 x i32]* @f to <4 x i32>*)](align=4)(tbaa=<badref>)> [ORD=47] [ID=-3]
>
> After:
>   Node47: v4i32,ch = load Node7, Node46, Node26<i32 undef> <LD16[bitcast
> ([4 x i32]* @f to <4 x i32>*)](align=4)(tbaa=<badref>)> [ORD=47] [ID=-3]
>
> Features:
>   * Possibility to replace 0xCRAZYNUM with something more
>     readable (Node<Num>).
>     You can also setup to output both CRAZYNUM and Node<Num>.
>   * Constants, registers and undef could be inlined. So you don't need
>     to lookup top part of dump just to realize that 0x3abaee0 is undef.
>     It could be inlined in hint mode, or substitution mode.
>     In last case you will get next output:
>   Node47: v4i32,ch = load Node7, Node46, i32 undef <LD16[bitcast ([4 x
> i32]* @f to <4 x i32>*)](align=4)(tbaa=<badref>)> [ORD=47] [ID=-3]
>
> Will wait you reviews, remarks and questions.
>
> -Stepan
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131206/a4685bd1/attachment.html>


More information about the llvm-commits mailing list