mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Avoid double live ranges recalculation.
This commit is contained in:
parent
36c825575e
commit
abd0651020
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue