[llvm-commits] [PATCH] AndOrXor Chain Optimization

Daniel Nicácio dnicacios at gmail.com
Fri Aug 5 10:25:41 PDT 2011


New unified diff file attached.

Daniel Nicacio

2011/8/4 Eli Friedman <eli.friedman at gmail.com>

> 2011/8/4 Daniel Nicácio <dnicacios at gmail.com>
>
>>  Hi, this patch increments the instcombiner pass.
>> It adds a new XOR, OR, AND optimization, trying to find a chain of logical
>> instructions (xor, and, or) operating on different bits of the same word. If
>> this chain is found, it is collapsed into a single logical instruction.
>> The figure below shows a generic example:
>>
>> Any comments and critics are welcome.
>>
>
> Please attach a single diff containing all the changes, and please use "svn
> diff" or some other tool that makes a unified diff.
>
> -Eli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110805/d87d1c23/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AndOrXorChainOpt.patch
Type: application/octet-stream
Size: 10596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110805/d87d1c23/attachment.obj>


More information about the llvm-commits mailing list