[PATCH] D48223: DAG combine "and|or (select c, -1, 0), x" -> "select c, x, 0|-1"

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 16 01:01:02 PDT 2018


rampitec updated this revision to Diff 151609.
rampitec added a comment.

Added x86 test.
Updated amdgcn test.


https://reviews.llvm.org/D48223

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AMDGPU/dagcombine-select.ll
  test/CodeGen/AMDGPU/udivrem.ll
  test/CodeGen/X86/dagcombine-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48223.151609.patch
Type: text/x-patch
Size: 9655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180616/c02e8afc/attachment.bin>


More information about the llvm-commits mailing list