Skip to content

Commit 833511c

Browse files
committed
Remove jit_LOAD_IP()
1 parent 5d3af10 commit 833511c

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -911,14 +911,9 @@ static ir_ref jit_IP32(zend_jit_ctx *jit)
911911
return ir_RLOAD_U32(ZREG_IP);
912912
}
913913

914-
static void jit_LOAD_IP(zend_jit_ctx *jit, ir_ref ref)
915-
{
916-
jit_STORE_IP(jit, ref);
917-
}
918-
919914
static void jit_LOAD_IP_ADDR(zend_jit_ctx *jit, const zend_op *target)
920915
{
921-
jit_LOAD_IP(jit, ir_CONST_ADDR(target));
916+
jit_STORE_IP(jit, ir_CONST_ADDR(target));
922917
}
923918

924919
static void zend_jit_track_last_valid_opline(zend_jit_ctx *jit)
@@ -2203,7 +2198,7 @@ static int zend_jit_leave_throw_stub(zend_jit_ctx *jit)
22032198
ir_MERGE_WITH_EMPTY_TRUE(if_set);
22042199

22052200
// JIT: opline = EG(exception_op);
2206-
jit_LOAD_IP(jit, jit_EG(exception_op));
2201+
jit_STORE_IP(jit, jit_EG(exception_op));
22072202

22082203
if (GCC_GLOBAL_REGS) {
22092204
ir_STORE(jit_EX(opline), jit_IP(jit));
@@ -4163,7 +4158,7 @@ static int zend_jit_handler(zend_jit_ctx *jit, const zend_op *opline, int may_th
41634158
ir_CALL(IR_VOID, ir_CONST_FUNC(handler));
41644159
} else {
41654160
ir_ref ip = ir_CALL_2(IR_ADDR, ir_CONST_FC_FUNC(handler), jit_FP(jit), jit_IP(jit));
4166-
jit_LOAD_IP(jit, ip);
4161+
jit_STORE_IP(jit, ip);
41674162
}
41684163
if (may_throw) {
41694164
zend_jit_check_exception(jit);
@@ -10266,7 +10261,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
1026610261
if (num_args) {
1026710262
ip = ir_ADD_OFFSET(ip, num_args * sizeof(zend_op));
1026810263
}
10269-
jit_LOAD_IP(jit, ip);
10264+
jit_STORE_IP(jit, ip);
1027010265
}
1027110266

1027210267
if (!trace && op_array == &func->op_array && call_num_args >= op_array->required_num_args) {
@@ -10288,7 +10283,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
1028810283
}
1028910284
ip = ir_LOAD_A(ir_ADD_OFFSET(func_ref, offsetof(zend_op_array, opcodes)));
1029010285
}
10291-
jit_LOAD_IP(jit, ip);
10286+
jit_STORE_IP(jit, ip);
1029210287
helper = ir_CONST_FC_FUNC(zend_jit_copy_extra_args_helper);
1029310288
} else {
1029410289
helper = ir_CONST_FC_FUNC(zend_jit_copy_extra_args_helper_no_skip_recv);
@@ -10312,7 +10307,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
1031210307
}
1031310308
ip = ir_LOAD_A(ir_ADD_OFFSET(func_ref, offsetof(zend_op_array, opcodes)));
1031410309
}
10315-
jit_LOAD_IP(jit, ip);
10310+
jit_STORE_IP(jit, ip);
1031610311

1031710312
// JIT: num_args = EX_NUM_ARGS();
1031810313
ir_ref num_args, first_extra_arg;
@@ -11088,7 +11083,7 @@ static int zend_jit_leave_func(zend_jit_ctx *jit,
1108811083
ir_GUARD(jit_IP(jit), jit_STUB_ADDR(jit, jit_stub_trace_halt));
1108911084
} else {
1109011085
ir_GUARD(ir_NE(ref, ir_CONST_ADDR(ZEND_VM_RETURN_VAL)), jit_STUB_ADDR(jit, jit_stub_trace_halt));
11091-
jit_LOAD_IP(jit, ref);
11086+
jit_STORE_IP(jit, ref);
1109211087
}
1109311088
}
1109411089

@@ -17063,9 +17058,9 @@ static int zend_jit_trace_handler(zend_jit_ctx *jit, const zend_op_array *op_arr
1706317058
opline->opcode == ZEND_DO_FCALL ||
1706417059
opline->opcode == ZEND_GENERATOR_CREATE) {
1706517060

17066-
jit_LOAD_IP(jit, ir_AND_A(ref, ir_CONST_ADDR(~ZEND_VM_ENTER_BIT)));
17061+
jit_STORE_IP(jit, ir_AND_A(ref, ir_CONST_ADDR(~ZEND_VM_ENTER_BIT)));
1706717062
} else {
17068-
jit_LOAD_IP(jit, ref);
17063+
jit_STORE_IP(jit, ref);
1706917064
}
1707017065
}
1707117066
if (may_throw

0 commit comments

Comments
 (0)