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 D65244
[AArch64][GlobalISel] Don't try to use GISel if subtarget doesn't have neon or fp. Authored by aemerson on Jul 24 2019, 2:50 PM.
Details 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
Diff Detail
Event TimelineComment Actions We're seeing a really odd regression with this diff. If you compile the following code with -target aarch64 -O0 -mgeneral-regs-only #include <stdbool.h>
bool foo();
bool ice() {
return foo(); // <- crashes the compiler during instruction selection
}it crashes the compiler. If you instead make it #include <stdbool.h>
bool foo();
bool ice() {
bool b = foo();
return b;
}then it is fine. |