[AArch64][sve] Prevent incorrect function call on fixed width vector
authorDavid Truby <david.truby@arm.com>
Thu, 2 Sep 2021 15:59:14 +0000 (16:59 +0100)
committerDavid Truby <david.truby@arm.com>
Mon, 6 Sep 2021 13:25:03 +0000 (14:25 +0100)
commitb297531ece896fb9ec36f001a74aef144082602b
tree0664cd2e4df1f23093bc07c13fe82f3a2be2450c
parente6e8d25920c1f1cffb58c6b3d52c2b4abbb4c963
[AArch64][sve] Prevent incorrect function call on fixed width vector

The isEssentiallyExtractHighSubvector function currently calls
getVectorNumElements on a type that in specific cases might be scalable.
Since this function only has correct behaviour at the moment on scalable
types anyway, the function can just return false when given a fixed type.

Differential Revision: https://reviews.llvm.org/D109163
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-no-typesize-warnings.ll [new file with mode: 0644]