[PATCH] D48466: [X86] Teach "(select (and (x , 0x1) == 0), y, (z | y) ) -> (-(and (x , 0x1)) & z ) | y" to also handle the case where there is no setcc and the and is used directly with the args swapped

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 22 14:12:22 PDT 2018


craig.topper updated this revision to Diff 152541.
craig.topper added a comment.

This is the complete patch. The previous one was relative to an intermediate step.


https://reviews.llvm.org/D48466

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48466.152541.patch
Type: text/x-patch
Size: 7126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180622/6903445f/attachment.bin>


More information about the llvm-commits mailing list