Skip to content

Look at fallthrough when deleting branch hints#8630

Merged
tlively merged 1 commit intomainfrom
delete-hint-fallthrough
Apr 20, 2026
Merged

Look at fallthrough when deleting branch hints#8630
tlively merged 1 commit intomainfrom
delete-hint-fallthrough

Conversation

@tlively
Copy link
Copy Markdown
Member

@tlively tlively commented Apr 20, 2026

The DeleteBranchHints pass looks at the conditions of branches to find the ID operands of logging calls to determine which branch hints to remove. It previously expected the logging call to be the condition of the branch, but in the presence of stacky code it is possible for the parser to create a block around the logging call. Handle this pattern by looking for the logging call at the condition's fallthrough value.

The DeleteBranchHints pass looks at the conditions of branches to find the ID operands of logging calls to determine which branch hints to remove. It previously expected the logging call to be the condition of the branch, but in the presence of stacky code it is possible for the parser to create a block around the logging call. Handle this pattern by looking for the logging call at the condition's fallthrough value.
@tlively tlively requested a review from kripken April 20, 2026 21:38
@tlively tlively requested a review from a team as a code owner April 20, 2026 21:38
@tlively tlively enabled auto-merge (squash) April 20, 2026 21:51
@tlively tlively merged commit 3ef8d19 into main Apr 20, 2026
16 checks passed
@tlively tlively deleted the delete-hint-fallthrough branch April 20, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants