Skip to content

Clear loopTops in CFGWalker - #9191

Merged
tlively merged 1 commit into
mainfrom
domtree-wto
Oct 1, 2026
Merged

tlively merged 1 commit into
mainfrom
domtree-wto

Conversation

@tlively

@tlively tlively commented Oct 1, 2026

Copy link
Copy Markdown
Member

CFGWalker clears all its local state when visiting a function, but it previously did not clear loopTops. If CFGWalker were to be used in a non-function-parallel pass, this would lead to dangling BasicBlock pointers in loopTops. There does not happen to be such a use of CFGWalker today, but it is still worth fixing.

CFGWalker clears all its local state when visiting a function, but it previously did not clear loopTops. If CFGWalker were to be used in a non-function-parallel pass, this would lead to dangling BasicBlock pointers in loopTops. There does not happen to be such a use of CFGWalker today, but it is still worth fixing.
@tlively
tlively requested a review from a team as a code owner October 1, 2026 23:06
@tlively
tlively requested review from kripken and removed request for a team October 1, 2026 23:06
@tlively
tlively enabled auto-merge (squash) October 1, 2026 23:34
@tlively
tlively merged commit f3ab996 into main Oct 1, 2026
16 checks passed
@tlively
tlively deleted the domtree-wto branch October 1, 2026 23:50
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