Skip to content

Commit

Permalink
Avoid double live ranges recalculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jan 21, 2019
1 parent 36c8255 commit abd0651
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/opcache/Optimizer/zend_optimizer.c
Expand Up @@ -1328,6 +1328,12 @@ static void zend_optimize_op_array(zend_op_array *op_array,
zend_redo_pass_two(op_array);

if (op_array->live_range) {
#if HAVE_DFA_PASS
if ((ZEND_OPTIMIZER_PASS_6 & ctx->optimization_level) &&
(ZEND_OPTIMIZER_PASS_7 & ctx->optimization_level)) {
return;
}
#endif
zend_recalc_live_ranges(op_array, NULL);
}
}
Expand Down

0 comments on commit abd0651

Please sign in to comment.