<div dir="ltr">Feel free to revert it. I'll look into your reproducer to see if I understand it.<div><br></div><div>The original code was definitely broken in the case of self-inlining, but that is prevented now.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 30, 2017 at 4:37 PM, Davide Italiano 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">davide added a comment.<br>
<br>
I looked at this more closely, and I personally don't see anything wrong with the code as-is.<br>
We happen to have an instruction that simplifies to a different instruction in the original function (mainly because instsimplify does some hazy threading over select/phis), so maybe this assertion is too strict?<br>
Kyle, what do you think?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D33850" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D33850</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>