[PATCH] D102515: [CostModel] Return an invalid cost for memory ops with unsupported types

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 06:33:15 PDT 2021


kmclaughlin updated this revision to Diff 348242.
kmclaughlin edited the summary of this revision.
kmclaughlin added a comment.

- Removed `isElementTypeLegalForScalableVector` from this patch
- Changed getTypeConversion to return `TypeScalarizeScalableVector` if a scalable type cannot be legalized by widening/splitting.
- Return an Invalid cost from getMemoryOpCost, getMaskedMemoryOpCost & getGatherScatterOpCost if the cost returned by getTypeLegalizationCost is Invalid


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

https://reviews.llvm.org/D102515

Files:
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/AArch64/sve-illegal-types.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102515.348242.patch
Type: text/x-patch
Size: 6168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/92160575/attachment.bin>


More information about the llvm-commits mailing list