mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Avoid double live ranges recalculation.
This commit is contained in:
parent
36c825575e
commit
abd0651020
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user