diff --git a/gcc/gimple-ssa-expand-sve.cc b/gcc/gimple-ssa-expand-sve.cc index bd7f88cfa9d0b8eaffeb8ae6322fc0ba09d79b30..12f5fe3ab4e7c33686160d296fbc8a0b4ed2a387 100644 --- a/gcc/gimple-ssa-expand-sve.cc +++ b/gcc/gimple-ssa-expand-sve.cc @@ -35,6 +35,9 @@ along with GCC; see the file COPYING3. If not see #include "cfgloop.h" #include "gimple-ssa.h" #include "gimple-pretty-print.h" +#ifdef __aarch64__ +#include "config/aarch64/aarch64.h" +#endif namespace { @@ -95,6 +98,9 @@ public: if (!flag_find_with_sve) return false; + if (!TARGET_SVE) + return false; + if (!targetm.vector_mode_supported_p (V2DImode)) return false;