[PATCH] Added a new transformation " (sub (or A, B) (and A, B)) --> (xor A, B) "

Sean Silva chisophugis at gmail.com
Fri Oct 10 13:48:32 PDT 2014


Where did you see this pattern come up?

On Thu, Oct 9, 2014 at 11:20 PM, sonam kumari <sonam.kumari at samsung.com>
wrote:

> Hi suyog, majnemer, dexonsmith,
>
> Hi All,
>
> The patch does the following transformation :
>
> (sub (or A, B) (and A, B)) --> (xor A, B)
>
> Z3 Link : http://rise4fun.com/Z3/oeyxv
>
> Please help in reviewing it.
>
> Regards,
> Sonam.
>
> http://reviews.llvm.org/D5720
>
> Files:
>   lib/Transforms/InstCombine/InstCombineAddSub.cpp
>   test/Transforms/InstCombine/sub.ll
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141010/559e5ada/attachment.html>


More information about the llvm-commits mailing list