[llvm-commits] [PATCH] optimization of (x & y) | (x ^ y), (x & y) + (x ^ y)

Manman Ren mren at apple.com
Wed Apr 25 09:32:18 PDT 2012



This patch is intended to reduce both (x & y) | (x ^ y) and (x & y) + (x ^y) to bitwise or.
It  modified two source files: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp and lib/Transforms/InstCombine/InstCombineAddSub.cpp.
A test case is also included in the patch.

Please review & provide feedback.

Thanks,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: opt_to_or.patch
Type: application/octet-stream
Size: 2489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120425/b1a25dad/attachment.obj>


More information about the llvm-commits mailing list