diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProduct.h b/Eigen/src/Core/arch/AltiVec/MatrixProduct.h index e86cc5b4f..54a7195f8 100644 --- a/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +++ b/Eigen/src/Core/arch/AltiVec/MatrixProduct.h @@ -2714,10 +2714,10 @@ EIGEN_ALWAYS_INLINE bool supportsMMA() #if defined(EIGEN_ALTIVEC_MMA_ONLY) return true; #else -#if EIGEN_COMP_LLVM - return false; // No dynamic dispatch for LLVM -#else +#if defined(EIGEN_ALTIVEC_MMA_DYNAMIC_DISPATCH) && __has_builtin(__builtin_cpu_supports) return __builtin_cpu_supports ("arch_3_1") && __builtin_cpu_supports ("mma"); +#else + return false; // No dynamic dispatch for LLVM #endif #endif }