[PATCH] D108993: [SVE] Fix the FP arithmetic instruction costs for SVE
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 31 06:27:43 PDT 2021
david-arm created this revision.
david-arm added reviewers: sdesmalen, CarolineConcatto, bsmith, DylanFleming-arm.
Herald added subscribers: ctetreau, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Several FP instructions (fadd, fsub, etc.) were incorrectly assigned
a higher cost for SVE because they have custom lowering, however we
know they are legal. This patch explicitly assigns a cost of 2 to
these opcodes.
Tests added here:
Analysis/CostModel/AArch64/arith-fp-sve.ll
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108993
Files:
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/arith-fp-sve.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108993.369689.patch
Type: text/x-patch
Size: 9238 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210831/c6f89128/attachment.bin>
More information about the llvm-commits
mailing list