[AArch64][GlobalISel] Don't try to use GISel if subtarget doesn't have neon or fp.
authorAmara Emerson <aemerson@apple.com>
Wed, 24 Jul 2019 23:00:04 +0000 (23:00 +0000)
committerAmara Emerson <aemerson@apple.com>
Wed, 24 Jul 2019 23:00:04 +0000 (23:00 +0000)
commitde81bd0faa5413602b52ed4b876c79dc785f599b
treefcb0d36297afd507bd6a4276450466508766af9c
parent86814bf658a64ac11e548f0a133c9a7d9ca3f831
[AArch64][GlobalISel] Don't try to use GISel if subtarget doesn't have neon or fp.

Throughout the legalizerinfo we currently make the assumption that the target
has neon and FP target features available. Fixing it will require a refactor of
the whole thing, so until then make sure we fall back.

Works around PR42734

Differential Revision: https://reviews.llvm.org/D65244

llvm-svn: 366957
llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/no-neon-no-fp.ll [new file with mode: 0644]