[php-src] PR #22132: Fix GH-22115: Tracing JIT drops loop-PHI CV register from SNAPSHOT
| From: | wilaak | Date: | Fri, 22 May 2026 21:32:46 +0000 |
| Subject: | [php-src] PR #22132: Fix GH-22115: Tracing JIT drops loop-PHI CV register from SNAPSHOT | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36204@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22132
Author: wilaak
Fixes GH-22115.
Extends the existing loop-PHI pre-pass to clear ZREG_LAST_USE on every SSA version of any
loop-carried CV, not just phi->sources[1]. Intermediate versions from opcodes with op1_def under
RC inference (SEND_VAR, QM_ASSIGN, CAST, etc.) were keeping the flag and tripping cleanup_stack
mid-loop.
Hmm why so many no-op macros lurking here? Looks like leftovers from the new 8.4 IR stuff that was
added. Not touching that.
Is a quick fix, NOT AN EXPERT. Needs expertise