Skip to content

Commit 7e20373

Browse files
committed
Try to find slowdown origin in new code, probably this one
1 parent 2cdc553 commit 7e20373

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Zend/Optimizer/dfa_pass.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,14 +1124,14 @@ static void zend_dfa_optimize_send_copies(zend_op_array *op_array, const zend_ss
11241124
&& op_dominates(op_array, ssa, opline, op_array->opcodes + next_use)) {
11251125
if (op_dominates_all_uses(op_array, ssa, next_use)) {
11261126
op_array->opcodes[i].extended_value = 1;
1127-
//fprintf(stderr, "yes optimize 1\n");
1127+
fprintf(stderr, "yes optimize 1\n");
11281128
}
11291129
}
11301130
} else /* ZEND_SEND_VAR_EX */ {
11311131
ZEND_ASSERT(ssa->ops[i].op1_def != -1);
11321132
if (ssa->vars[ssa->ops[i].op1_def].no_val) {
11331133
op_array->opcodes[i].extended_value = 1;
1134-
//fprintf(stderr, "yes optimize 2\n");
1134+
fprintf(stderr, "yes optimize 2\n");
11351135
}
11361136
}
11371137
}

Zend/Optimizer/sccp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,8 @@ static void sccp_visit_instr(scdf_ctx *scdf, zend_op *opline, zend_ssa_op *ssa_o
10501050
case ZEND_SEND_VAL:
10511051
case ZEND_SEND_VAR:
10521052
{
1053+
if (opline->opcode == ZEND_SEND_VAR)
1054+
{SET_RESULT_BOT(op1);}
10531055
/* If the value of a SEND for an ICALL changes, we need to reconsider the
10541056
* ICALL result value. Otherwise we can ignore the opcode. */
10551057
zend_call_info *call;

0 commit comments

Comments
 (0)