[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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 24 07:43:53 PDT 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL335433: [DAGCombiner] eliminate setcc bool math when input is low-bit of some value (authored by spatel, committed by ).
Herald added a subscriber: nemanjai.

Changed prior to commit:
  https://reviews.llvm.org/D48466?vs=152541&id=152613#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48466

Files:
  llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/trunk/test/CodeGen/PowerPC/bool-math.ll
  llvm/trunk/test/CodeGen/X86/bool-math.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48466.152613.patch
Type: text/x-patch
Size: 12443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180624/9066cbca/attachment.bin>


More information about the llvm-commits mailing list