<div dir="ltr">FWIW: I agree with David that this is probably the right approach for this.<div>Thanks for being willing to do it.</div><div><br><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 28, 2017 at 10:23 AM, David Li via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">davidxl added a comment.<br>
<br>
A couple of comments:<br>
<br>
1. Moving it out of the reassociation pass is probably the right direction to go.<br>
2. having this pass allows future enhancement<br>
3. This actually allows you to do more aggressive expression operand re-ordering (to enable more shrinking) -- but to void offsetting reassocation's effect (to enable cse,  constant folding, loop invariant code motion etc), the shrink pass should be pushed very late in the pipeline.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D32563" rel="noreferrer" target="_blank">https://reviews.llvm.org/D3256<wbr>3</a><br>
<br>
<br>
<br>
</blockquote></div><br></div></div></div></div>