[SVE][CodeGen] At -O0 fallback to DAG ISel when translating alloca with scalable...
authorDavid Sherwood <david.sherwood@arm.com>
Tue, 28 Jul 2020 12:28:14 +0000 (13:28 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Thu, 30 Jul 2020 07:40:53 +0000 (08:40 +0100)
commit23ad660b5d34930b2b5362f1bba63daee78f6aa4
treeb36368a311cdec9e0000f9ab1de54a13b73a83b3
parent73c12bd8ff1a9cd8375a357ea06f171e127ec1b8
[SVE][CodeGen] At -O0 fallback to DAG ISel when translating alloca with scalable types

When building code at -O0 We weren't falling back to DAG ISel correctly
when encountering alloca instructions with scalable vector types. This
is because the alloca has no operands that are scalable. I've fixed this by
adding a check in AArch64ISelLowering::fallBackToDAGISel for alloca
instructions with scalable types.

Differential Revision: https://reviews.llvm.org/D84746
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll