[PATCH] D49225: [SLPVectorizer] Move scalar/vector costs to helper functions (NFCI).
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 12 02:41:03 PDT 2018
RKSimon created this revision.
RKSimon added reviewers: ABataev, dtemirbulatov, spatel.
As detailed on https://reviews.llvm.org/D49135, this patch moves most of the opcode scalar/vector cost calculations into helper functions. This is primarily to avoid repetition in the shufflevector case for alternate opcodes, but it also demonstrates how many of the opcode groups share the same cost calculation code.
I haven't touched the ExtractValue/ExtractElement costs - these might require more work before we can use them correctly for PR30787/https://reviews.llvm.org/D28907 'copyable' cases.
Repository:
rL LLVM
https://reviews.llvm.org/D49225
Files:
lib/Transforms/Vectorize/SLPVectorizer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49225.155133.patch
Type: text/x-patch
Size: 20728 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180712/94fe8ca4/attachment.bin>
More information about the llvm-commits
mailing list