<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>+1 Being able to look at the diffs of the dumps after passes
sounds really nice. /Jonas<br>
</p>
<br>
<div class="moz-cite-prefix">On 2018-03-14 21:51, Philip Reames via
llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:46e615d4-5332-65d1-92e2-a29e0b2bbb48@philipreames.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>This is interesting, and might be useful. I don't know that
this is broadly useful enough for upstream inclusion, but if you
could post this to github somewhere, I might play with it.</p>
<p>There might also be room to factor out common functionality.
We've also run into the need to print whole-module instead of
containing construct (i.e. this loop). If we added upstream
support for something along the lines of
-print-module-after-all, building the git history could easily
be done as a post processing step. <br>
</p>
<p>Philip<br>
</p>
<br>
<div class="moz-cite-prefix">On 03/06/2018 10:43 AM, Alexandre
Isoard via llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANLM5LdprkmGkTtv0ck-DXVoc+nVtdpmfQdjzT-YRPZ_Ym40FA@mail.gmail.com">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I had a stupid idea recently that turned out not so
stupid after all. I wanted to be able to "see" an entire
pass pipeline in action to find unnecessary transformations
and/or missed opportunities and generally improve the
debug-ability of LLVM.</div>
<div><br>
</div>
<div>So as the title suggest, I implemented an equivalent of
"-print-after-all" but instead of printing into stdout I
dump into a file that get commit into a temporary git. There
are some quirks with it but it's working and is actually
awesome. For example, at first sight, I see multiple time
lcssa and instcombine cancelling each other's work.</div>
<div><br>
</div>
<div>Of course, that has a big impact on compile time when
enabled, but that's still practical (git being quite good at
its job) when debugging.</div>
<div><br>
</div>
<div>There are improvement I can make, but would you guys be
interested in such feature?</div>
<div>
<div><br>
</div>
-- <br>
<div class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr"><b>Alexandre Isoard</b><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org" moz-do-not-send="true">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" moz-do-not-send="true">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>