[php-src] PR #12925: Convert MAX() assignments for MM stats to if check
| From: | nielsdos | Date: | Sun, 10 Dec 2023 22:41:54 +0000 |
| Subject: | [php-src] PR #12925: Convert MAX() assignments for MM stats to if check | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24487@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12925
Author: nielsdos
When the MAX() macro is used with an unconditional assignment, the memory write will always happen
and the maximum is moved using conditional move instructions. In practice, a branch is easily
predictable, so it seems more optimal to use an if check.