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

sonam kumari sonam.kumari at samsung.com
Thu Oct 9 23:20:22 PDT 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5720.14701.patch
Type: text/x-patch
Size: 1236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141010/cb661ab7/attachment.bin>


More information about the llvm-commits mailing list