<div dir="ltr">It cannot go into InstCombine because then it would be in a non-canonical form, SimplifyDemandedUseBits will undo the operation.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 11:05 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">since this reduces the occurrences of 'y', shouldn't it be in instcombine?<br>
<div><div class="h5"><br>
On 6 May 2013 01:25, David Majnemer <<a href="mailto:david.majnemer@gmail.com">david.majnemer@gmail.com</a>> wrote:<br>
> This patch changes DAGCombiner to do the following:<br>
>   (xor (and x, y), y) -> (and (not x), y)<br>
><br>
> This is nice because we avoid emitting an immediate twice for tagets like<br>
> X86.<br>
><br>
> --<br>
> David Majnemer<br>
><br>
</div></div>> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
><br>
</blockquote></div><br></div>