[llvm-commits] [PATCH] AndOrXor Chain Optimization

Eli Friedman eli.friedman at gmail.com
Thu Aug 4 19:07:51 PDT 2011


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/20110804/e108c664/attachment.html>


More information about the llvm-commits mailing list