[PATCH] D12118: [DAGCombiner] Added SMAX/SMIN/UMAX/UMIN constant folding

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 14:59:37 PDT 2015


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

Added support for constant folding of SMAX/SMIN/UMAX/UMIN nodes

We still need to add constant folding of vector comparisons to fold the tests for targets that don't support the respective min/max nodes

I needed to update 2011-12-06-AVXVectorExtractCombine to load a vector instead of using a constant vector to prevent it folding

Repository:
  rL LLVM

http://reviews.llvm.org/D12118

Files:
  include/llvm/CodeGen/SelectionDAG.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/X86/2011-12-06-AVXVectorExtractCombine.ll
  test/CodeGen/X86/vec_minmax_sint.ll
  test/CodeGen/X86/vec_minmax_uint.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12118.32458.patch
Type: text/x-patch
Size: 64379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150818/621b3d56/attachment.bin>


More information about the llvm-commits mailing list