[PATCH] Teach DAGCombiner to fold inverted bit tests

David Majnemer david.majnemer at gmail.com
Sun May 5 22:25:47 PDT 2013


This patch changes DAGCombiner to do the following:
  (xor (and x, y), y) -> (and (not x), y)

This is nice because we avoid emitting an immediate twice for tagets like
X86.

-- 
David Majnemer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130505/cccf8b32/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fold-inverted-bit-test.patch
Type: application/octet-stream
Size: 2529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130505/cccf8b32/attachment.obj>


More information about the llvm-commits mailing list