File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ static inline int zend_cpu_supports_pclmul(void) {
289289
290290/* __builtin_cpu_supports has cldemote from gcc11 and clang 19 */
291291#if defined(PHP_HAVE_BUILTIN_CPU_SUPPORTS ) && ((defined(__clang__ ) && (__clang_major__ >= 19 )) || (!defined(__clang__ ) && defined(__GNUC__ ) && (ZEND_GCC_VERSION >= 11000 )))
292+ #define HAVE_ZEND_CPU_SUPPORTS_CLDEMOTE 1
292293ZEND_NO_SANITIZE_ADDRESS
293294static inline int zend_cpu_supports_cldemote (void ) {
294295#ifdef PHP_HAVE_BUILTIN_CPU_INIT
Original file line number Diff line number Diff line change 1616 * +----------------------------------------------------------------------+
1717 */
1818
19+ #include "Zend/zend_cpuinfo.h"
1920#include "Zend/zend_types.h"
2021#include "Zend/zend_type_info.h"
2122#include "jit/ir/ir.h"
@@ -3396,7 +3397,7 @@ static void zend_jit_setup(bool reattached)
33963397 if (zend_cpu_supports_avx()) {
33973398 allowed_opt_flags |= ZEND_JIT_CPU_AVX;
33983399 }
3399- # if defined(PHP_HAVE_BUILTIN_CPU_SUPPORTS) && ((defined(__clang__) && (__clang_major__ >= 19)) || (!defined(__clang__) && defined(__GNUC__) && (ZEND_GCC_VERSION >= 11000)))
3400+ # ifdef HAVE_ZEND_CPU_SUPPORTS_CLDEMOTE
34003401 if (zend_cpu_supports_cldemote()) {
34013402 default_mflags |= IR_X86_CLDEMOTE;
34023403 }
You can’t perform that action at this time.
0 commit comments