[PATCH] D30502: [DAGCombiner] fold binops with constant into select-of-constants

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 12:50:47 PST 2017


spatel updated this revision to Diff 90220.
spatel added a comment.

Patch updated:

1. Add asserts for constant folds of the new select operands.
2. Add vector tests (x86 for ease of testing) because there was no coverage for those.
3. Add TODO comment about handling SELECT_CC.


https://reviews.llvm.org/D30502

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/ARM/select_xform.ll
  test/CodeGen/PowerPC/select_const.ll
  test/CodeGen/X86/2010-08-04-MaskedSignedCompare.ll
  test/CodeGen/X86/avx512-insert-extract.ll
  test/CodeGen/X86/select_const.ll
  test/CodeGen/X86/setcc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30502.90220.patch
Type: text/x-patch
Size: 36701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170301/4d59eea1/attachment.bin>


More information about the llvm-commits mailing list