[PATCH] D100745: [AArch64] Add AArch64TTIImpl::getMaskedMemoryOpCost function
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 20 01:53:04 PDT 2021
david-arm added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:927
+ unsigned ScalarCost = 8;
+ if (auto *VecTy = dyn_cast<FixedVectorType>(Src))
+ ScalarCost *= VecTy->getNumElements();
----------------
junparser wrote:
> would it better to also consider useSVEForFixedLengthVectors here?
Yes definitely once we have support for lowering masked loads/stores using SVE for fixed width vectors. At the moment though we still continue to scalarise masked loads/stores.
There is work in progress I believe on lowering fixed width masked loads/stores to use SVE so once that patch lands we can update this cost model too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100745/new/
https://reviews.llvm.org/D100745
More information about the llvm-commits
mailing list