[PATCH] D14683: [DAGCombiner] Vector constant folding for comparisons

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 14 13:19:34 PST 2015


RKSimon created this revision.
RKSimon added reviewers: qcolombet, majnemer, andreadb, spatel.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

This patch adds support for vector constant folding of integer/float comparisons.

This requires FoldConstantVectorArithmetic to support scalar constant operands (in this case ISD::CONDCASE). In future we should be able to support other scalar constant types as necessary (and possibly start calling FoldConstantVectorArithmetic for all node creations).

Repository:
  rL LLVM

http://reviews.llvm.org/D14683

Files:
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/X86/2011-10-21-widen-cmp.ll
  test/CodeGen/X86/2011-20-21-zext-ui2fp.ll
  test/CodeGen/X86/vec_minmax_sint.ll
  test/CodeGen/X86/vec_minmax_uint.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14683.40218.patch
Type: text/x-patch
Size: 115363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151114/441998a8/attachment.bin>


More information about the llvm-commits mailing list