Skip to content

Zend/Optimizer/dfa_pass.c: refactor zend_dfa_optimize_calls()#21549

Merged
Girgias merged 2 commits intophp:masterfrom
Girgias:zend_dfa_optimize_calls-minor-refactoring
Mar 28, 2026
Merged

Zend/Optimizer/dfa_pass.c: refactor zend_dfa_optimize_calls()#21549
Girgias merged 2 commits intophp:masterfrom
Girgias:zend_dfa_optimize_calls-minor-refactoring

Conversation

@Girgias
Copy link
Copy Markdown
Member

@Girgias Girgias commented Mar 27, 2026

This function is only called within dfa_pass.c, thus make it static

Return a uint32_t as the value can never be negative

Add some const qualifiers

Minor CS adjustment to make if condition easier to read

Noticed this while checking something for #21542

This function is only called within dfa_pass.c, thus make it static

Return a uint32_t as the value can never be negative

Add some const qualifiers

Minor CS adjustment to make if condition easier to read
Copy link
Copy Markdown
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest looks LGTM.

@Girgias Girgias marked this pull request as ready for review March 28, 2026 14:48
@Girgias Girgias requested a review from dstogov as a code owner March 28, 2026 14:48
@Girgias Girgias merged commit d28d59a into php:master Mar 28, 2026
19 checks passed
@Girgias Girgias deleted the zend_dfa_optimize_calls-minor-refactoring branch March 28, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants