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
Paths
| Differential D117099
[AArch64] Fix incorrect use of MVT::getVectorNumElements in AArch64TTIImpl::getVectorInstrCost ClosedPublic Authored by david-arm on Jan 12 2022, 2:44 AM.
Details Summary If we are inserting into or extracting from a scalable vector we do Tests added here: Analysis/CostModel/AArch64/sve-insert-extract.ll
Diff Detail
Event TimelineHerald added subscribers: ctetreau, hiraditya, kristof.beyls. · View Herald TranscriptJan 12 2022, 2:44 AM This revision is now accepted and ready to land.Jan 12 2022, 3:06 AM This revision was landed with ongoing or failed builds.Jan 13 2022, 1:27 AM Closed by commit rGef1ca4d3e965: [AArch64] Fix incorrect use of MVT::getVectorNumElements in AArch64TTIImpl… (authored by david-arm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 399582 llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/sve-insert-extract.ll
llvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll
|