com php-src: Fixed NOP removal (empty blocks should be shifted as well): ext/opcache/Optimizer/dfa_pass.c
| From: | Dmitry Stogov | Date: | Tue, 19 Sep 2017 22:10:31 +0000 |
| Subject: | com php-src: Fixed NOP removal (empty blocks should be shifted as well): ext/opcache/Optimizer/dfa_pass.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99463@lists.php.net to get a copy of this message | ||
Commit: 6544ec5460d16ba48c1430bc59ae6475b4362686
Author: Dmitry Stogov <dmitry@zend.com> Wed, 20 Sep 2017 01:10:31 +0300
Parents: fd86fdd7b8f23326d6bedaceea206a21a03ecad2
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6544ec5460d16ba48c1430bc59ae6475b4362686
Log:
Fixed NOP removal (empty blocks should be shifted as well)
Changed paths:
M ext/opcache/Optimizer/dfa_pass.c
Diff:
diff --git a/ext/opcache/Optimizer/dfa_pass.c b/ext/opcache/Optimizer/dfa_pass.c
index 15245cf..ca4ca15 100644
--- a/ext/opcache/Optimizer/dfa_pass.c
+++ b/ext/opcache/Optimizer/dfa_pass.c
@@ -186,6 +186,8 @@ static void zend_ssa_remove_nops(zend_op_array *op_array, zend_ssa *ssa)
new_opline = op_array->opcodes + target - 1;
zend_optimizer_migrate_jump(op_array, new_opline, opline);
}
+ } else {
+ b->start = target;
}
} else {
b->start = target;