[llvm] [Analysis][SVE] Improve cost model for some extending masked loads (PR #65957)
Dinar Temirbulatov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 04:33:01 PDT 2023
================
@@ -2461,6 +2461,34 @@ InstructionCost AArch64TTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst,
FP16Tbl, ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT()))
return AdjustCost(Entry->Cost);
+ if ((ISD == ISD::ZERO_EXTEND || ISD == ISD::SIGN_EXTEND) &&
+ CCH == TTI::CastContextHint::Masked && ST->hasSVEorSME() &&
+ !TLI->isTypeLegal(SrcTy) && !TLI->isTypeLegal(DstTy)) {
----------------
dtemirbulatov wrote:
Is this change might affect non-load extend instructions?
https://github.com/llvm/llvm-project/pull/65957
More information about the llvm-commits
mailing list