diff options
author | David Sherwood <david.sherwood@arm.com> | 2022-01-12 09:51:34 +0000 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2022-01-13 09:27:14 +0000 |
commit | ef1ca4d3e965e76d190cdf3c6d6d4f8db67e7a2b (patch) | |
tree | ea3faf3c89b51f2b91e704b8b4ee0be2a94a2e64 /llvm/lib/IR/Module.cpp | |
parent | 54eb70886cda06c66122f346520cee7cc6113975 (diff) | |
download | llvm-ef1ca4d3e965e76d190cdf3c6d6d4f8db67e7a2b.zip llvm-ef1ca4d3e965e76d190cdf3c6d6d4f8db67e7a2b.tar.gz llvm-ef1ca4d3e965e76d190cdf3c6d6d4f8db67e7a2b.tar.bz2 |
[AArch64] Fix incorrect use of MVT::getVectorNumElements in AArch64TTIImpl::getVectorInstrCost
If we are inserting into or extracting from a scalable vector we do
not know the number of elements at runtime, so we can only let the
index wrap for fixed-length vectors.
Tests added here:
Analysis/CostModel/AArch64/sve-insert-extract.ll
Differential Revision: https://reviews.llvm.org/D117099
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions