[PATCH] D90124: [SLP] Pass VecPred argument to getCmpSelInstrCost.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 25 10:40:42 PDT 2020
fhahn created this revision.
fhahn added reviewers: spatel, RKSimon, ABataev.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
fhahn requested review of this revision.
Check if all compares in VL have the same predicate and pass it to
getCmpSelInstrCost, to improve cost-modeling on targets that only
support compare/select combinations for certain uniform predicates.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90124
Files:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/AArch64/horizontal.ll
llvm/test/Transforms/SLPVectorizer/AArch64/vectorizable-selects-min-max.ll
llvm/test/Transforms/SLPVectorizer/AArch64/vectorizable-selects-uniform-cmps.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90124.300547.patch
Type: text/x-patch
Size: 36086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201025/7e327572/attachment.bin>
More information about the llvm-commits
mailing list