[PATCH] D80516: [ConstantFolding] Constant folding for integer vector reduce intrinsics
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 25 04:46:34 PDT 2020
dmgreen created this revision.
dmgreen added reviewers: spatel, fhahn, Ayal, nikic, efriedma.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
This add constant folding for all the integer vector reduce intrinsics, providing that the argument is a constant vector. zeroinitializer always produces 0 for all intrinsics, and other values can be handled with APInt operators.
https://reviews.llvm.org/D80516
Files:
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Analysis/ConstantFolding/vecreduce.ll
llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80516.266002.patch
Type: text/x-patch
Size: 21884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200525/586205de/attachment-0001.bin>
More information about the llvm-commits
mailing list