[llvm] r185909 - InstCombine: add more transforms

Jay Foad jay.foad at gmail.com
Tue Jul 9 02:00:10 PDT 2013


On 9 July 2013 08:50, David Majnemer <david.majnemer at gmail.com> wrote:

> Author: majnemer
> Date: Tue Jul  9 02:50:59 2013
> New Revision: 185909
>
> URL: http://llvm.org/viewvc/llvm-project?rev=185909&view=rev
> Log:
> InstCombine: add more transforms
>

Thanks!


> C1-X <u C2 -> (X|(C2-1)) == C1
> C1-X >u C2 -> (X|C2) == C1
> X-C1 <u C2 -> (X & -C2) == C1
> X-C1 >u C2 -> (X & ~C2) == C1
>

I assume the second and fourth lines should say != instead of == ? If so,
the comments in the code have the same bug.

Jay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130709/9b4e8a11/attachment.html>


More information about the llvm-commits mailing list