[PATCH] D132477: Improve cost model for some 128-bit vector operations that use SVE

Hassnaa Hamdi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 10:42:44 PDT 2022


hassnaa-arm updated this revision to Diff 457325.
hassnaa-arm marked 5 inline comments as done.
hassnaa-arm added a comment.

[AArch64-SVE]: Improve cost model

- check for element type instead of full VT to include all vec lengths of the type.
- multiply the cost by the legalization cost.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132477/new/

https://reviews.llvm.org/D132477

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/sve-arith.ll
  llvm/test/Analysis/CostModel/AArch64/sve-fixed-length.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132477.457325.patch
Type: text/x-patch
Size: 12000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220901/e5d322ef/attachment.bin>


More information about the llvm-commits mailing list