[all-commits] [llvm/llvm-project] ef1ca4: [AArch64] Fix incorrect use of MVT::getVectorNumEl...
david-arm via All-commits
all-commits at lists.llvm.org
Thu Jan 13 01:27:27 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef1ca4d3e965e76d190cdf3c6d6d4f8db67e7a2b
https://github.com/llvm/llvm-project/commit/ef1ca4d3e965e76d190cdf3c6d6d4f8db67e7a2b
Author: David Sherwood <david.sherwood at arm.com>
Date: 2022-01-13 (Thu, 13 Jan 2022)
Changed paths:
M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
A llvm/test/Analysis/CostModel/AArch64/sve-insert-extract.ll
M llvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list