[PATCH] D48376: DAG: Fold out selects with an undef operand

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 09:10:52 PDT 2018


arsenm created this revision.
arsenm added a reviewer: kparzysz.
Herald added subscribers: nhaehnle, wdng, qcolombet.
Herald added a reviewer: javed.absar.

Instcombine already does this, but this can appear during legalization.

test/CodeGen/Hexagon/expand-vselect-kill.ll completely changes when fixed, and I'm not sure what exactly it was looking for in the first place


https://reviews.llvm.org/D48376

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/half.ll
  test/CodeGen/AMDGPU/select-undef.ll
  test/CodeGen/ARM/sub-cmp-peephole.ll
  test/CodeGen/Hexagon/autohvx/isel-extractelt-illegal-type.ll
  test/CodeGen/Hexagon/expand-vselect-kill.ll
  test/CodeGen/Hexagon/swp-const-tc1.ll
  test/CodeGen/X86/2012-08-07-CmpISelBug.ll
  test/CodeGen/X86/hoist-spill.ll
  test/CodeGen/X86/pr31045.ll
  test/CodeGen/X86/pr32610.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48376.152102.patch
Type: text/x-patch
Size: 10411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/d1ecb594/attachment.bin>


More information about the llvm-commits mailing list