<div dir="ltr">On Tue, Jul 9, 2013 at 2:00 AM, Jay Foad <span dir="ltr"><<a href="mailto:jay.foad@gmail.com" target="_blank">jay.foad@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="im">On 9 July 2013 08:50, David Majnemer <span dir="ltr"><<a href="mailto:david.majnemer@gmail.com" target="_blank">david.majnemer@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Author: majnemer<br>
Date: Tue Jul  9 02:50:59 2013<br>
New Revision: 185909<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=185909&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=185909&view=rev</a><br>
Log:<br>
InstCombine: add more transforms<br></blockquote><div><br></div></div><div>Thanks!</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

C1-X <u C2 -> (X|(C2-1)) == C1<br>
C1-X >u C2 -> (X|C2) == C1<br>
X-C1 <u C2 -> (X & -C2) == C1<br>
X-C1 >u C2 -> (X & ~C2) == C1<br></blockquote><div><br></div></div><div>I assume the second and fourth lines should say != instead of == ? If so, the comments in the code have the same bug.</div></div></div></div>
</blockquote><div><br></div><div style>Good eye! Thanks, fixed in r185916.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><font color="#888888"><div><br></div><div>Jay.</div>

</font></span></div></div></div>
</blockquote></div><br></div></div>