[PATCH] D126432: [SLP][TTI][X86] Implement addsub cost calculation.
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 16:30:08 PDT 2022
vporpo created this revision.
vporpo added reviewers: vdmitrie, ABataev, dmgreen, RKSimon.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch adds support for the addsub instructions in SLP's getEntryCost().
This relies on extending TTI->getShuffleCost() to return the correct cost
for such instructions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126432
Files:
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Analysis/CostModel/X86/shuffle-add-sub.ll
llvm/test/Transforms/SLPVectorizer/X86/supernode.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126432.432150.patch
Type: text/x-patch
Size: 24234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220525/358c081c/attachment.bin>
More information about the llvm-commits
mailing list