[AArch64][SVE] Don't crash on pre-legalizer types in extload combine.
authorAhmed Bougacha <ahmed@bougacha.org>
Thu, 26 May 2022 21:46:43 +0000 (14:46 -0700)
committerAhmed Bougacha <ahmed@bougacha.org>
Thu, 9 Jun 2022 17:33:21 +0000 (10:33 -0700)
commitc68b469e07884bc1dd69fb946af61ae476ac139b
tree0c869a47e3a7140f26dd9ce2615ca594519e19ed
parent1be3669dda4d3c6a4aa3a36c2599f20a0a00c7ed
[AArch64][SVE] Don't crash on pre-legalizer types in extload combine.

This was assuming the vector types were MVTs, but they don't have to be.

Note that the concrete output of the test isn't very useful, since it's
dominated by nonsensical calling convention lowering for the weird types.

Differential Revision: https://reviews.llvm.org/D126505
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-fixed-length-ext-loads.ll