[SROA] NFC: Look at TypeStoreSize scalable property, rather than at type directly.
authorSander de Smalen <sander.desmalen@arm.com>
Tue, 14 Feb 2023 14:08:02 +0000 (14:08 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Wed, 15 Feb 2023 09:01:14 +0000 (09:01 +0000)
commit462227f1150fc4a12f95a7a101de477c06d35ba7
tree92bf6212339bbd89d5ea21bad13cc75b8c2010e4
parent35276f16e5a2cae0dfb49c0fbf874d4d2f177acc
[SROA] NFC: Look at TypeStoreSize scalable property, rather than at type directly.

Some places in the code have checks for isa<ScalableVectorType> and use
that to bail out of the code. It's also possible to look directly at the
allocated type-size and check if the size is scalable. This means it's
possible to also support other scalable types that are not vectors (i.e.
TargetExtType).

This is split out from D136861.
llvm/lib/Transforms/Scalar/SROA.cpp