[PATCH] D157628: [AArch64][SVE2] Change the cost of extends with S/URHADD to 0
Kerry McLaughlin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 09:36:09 PDT 2023
kmclaughlin updated this revision to Diff 552059.
kmclaughlin marked 3 inline comments as done.
kmclaughlin added a comment.
- Renamed `isExtShiftRightAdd` to `isExtPartOfAvgExpr`
- Used `dyn_cast_or_null` with casts from `getUniqueUndroppableUser()`
- Added a new match expression for `m_ZExtOrSext` and check the opcodes of the extends match
- Added fixed-width & negative tests
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157628/new/
https://reviews.llvm.org/D157628
Files:
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
llvm/test/Analysis/CostModel/AArch64/sve2-ext-rhadd.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157628.552059.patch
Type: text/x-patch
Size: 18077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230821/02da6c47/attachment.bin>
More information about the llvm-commits
mailing list