Tell the cost model to use the scalable calculation for non-neon fixed vector. This results in a cheaper cost for fixed-length SVE masked gathers/scatters allowing the vectorizor to emit them more frequently.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
1593 | "MaxNumElements / MaxNumElements"? |
Comment Actions
Hi @MattDevereau, given we already have tests in Analysis/CostModel/AArch64/mem-op-cost-model.ll is it necessary to sve-gather-vls.ll and sve-scatter-vls.ll tests? I was thinking you could just add those to mem-op-cost-model.ll instead.
"MaxNumElements / MaxNumElements"?