[AArch64] Don't look at type size for scalable types in isExtFreeImpl
authorDavid Green <david.green@arm.com>
Thu, 15 Jun 2023 07:47:10 +0000 (08:47 +0100)
committerDavid Green <david.green@arm.com>
Thu, 15 Jun 2023 07:47:10 +0000 (08:47 +0100)
commitf031df21aaadf0ec7a5b697bb75e44656aba4abf
tree57ddf2fd05c55597f4ffe2e359b9ec68b9fd6f64
parent0c6f2f629cc0017361310fa4c132090413a874db
[AArch64] Don't look at type size for scalable types in isExtFreeImpl

This fixes one of those 'Request for a fixed element count on a scalable
object' errors in the AArch64 isExtFreeImpl method, where the uses of a sext
are checked to see if the instruction can be considered free.
https://godbolt.org/z/debYP9c4G

Differential Revision: https://reviews.llvm.org/D152930
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/Analysis/CostModel/AArch64/cost-scalable-vector-gep.ll