[PATCH] [DAGCombiner] Add support for TRUNCATE + FP_EXTEND vector constant folding

Simon Pilgrim llvm-dev at redking.me.uk
Tue Mar 24 15:30:27 PDT 2015


Hi qcolombet, hfinkel, andreadb,

This patch adds supports for the vector constant folding of TRUNCATE and FP_EXTEND instructions and tidies up the SINT_TO_FP and UINT_TO_FP instructions to match.

It also moves the vector constant folding for the FNEG and FABS instructions to use the DAG.getNode() functionality like the other unary instructions.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8593

Files:
  include/llvm/CodeGen/SelectionDAGNodes.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/X86/vec_fpext.ll
  test/CodeGen/X86/vector-trunc.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8593.22608.patch
Type: text/x-patch
Size: 10309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150324/591e191f/attachment.bin>


More information about the llvm-commits mailing list