[llvm-commits] [PATCH] Bug 14664: InstCombine missing canonicalization of sub-and into a select
Ahmad, Muhammad T
muhammad.t.ahmad at intel.com
Thu Jan 17 08:22:37 PST 2013
Buzilla URL: http://llvm.org/bugs/show_bug.cgi?id=14664
This patch adds the InstCombine that converts any expression of the form '(and (sub 0, (zext A to B)), C)' --> 'select A, C, 0' where type of A is i1.
Please have a look (diff attached).
Note: This is my first patch submission to this list and although I am trying to follow protocol as best as I can, if I am missing something, please let me know.
- Muhammad Tauqir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: le-2259.diff
Type: text/x-patch
Size: 2385 bytes
Desc: le-2259.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130117/4291c686/attachment.bin>
More information about the llvm-commits
mailing list