Skip to content

Commit c4a0d57

Browse files
committed
Truly revert change
1 parent 0c61a86 commit c4a0d57

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,14 +2660,14 @@ static void zend_jit_init_ctx(zend_jit_ctx *jit, uint32_t flags)
26602660
* of saving ZREG_FP, ZREG_IP when GCC_GLOBAL_REGS is 1, so we don't
26612661
* have to save them. When GCC_GLOBAL_REGS is 1, always save them.
26622662
*/
2663-
#if GCC_GLOBAL_REGS
2664-
jit->ctx.fixed_save_regset = IR_REGSET_PRESERVED & ~((1<<ZREG_FP) | (1<<ZREG_IP));
2665-
#else
2666-
jit->ctx.fixed_save_regset = IR_REGSET_PRESERVED;
2667-
#endif
2663+
if (GCC_GLOBAL_REGS) {
2664+
jit->ctx.fixed_save_regset = IR_REGSET_PRESERVED & ~((1<<ZREG_FP) | (1<<ZREG_IP));
2665+
} else {
2666+
jit->ctx.fixed_save_regset = IR_REGSET_PRESERVED;
26682667
//#ifdef _WIN64
26692668
// jit->ctx.fixed_save_regset &= 0xffff; // TODO: don't save FP registers ???
26702669
//#endif
2670+
}
26712671
#ifdef _WIN64
26722672
jit->ctx.fixed_call_stack_size = 16 + IR_SHADOW_ARGS;
26732673
#else

0 commit comments

Comments
 (0)