Skip to content

SSA CFG: add shared function registry across nested builders#16686

Merged
clonker merged 1 commit into
developfrom
ssa-cfg-builder-share-function-registry
May 7, 2026
Merged

SSA CFG: add shared function registry across nested builders#16686
clonker merged 1 commit into
developfrom
ssa-cfg-builder-share-function-registry

Conversation

@clonker

@clonker clonker commented May 7, 2026

Copy link
Copy Markdown
Member

The m_functionDefinitions in the SSACFGBuilder are currently copy-assigned into all child builders (for nested function definitions). This is not only computationally inefficient but also requires a lot more memory than would be necessary. This PR replaces it with a FunctionRegistry that is shared across all builders.

@clonker clonker marked this pull request as ready for review May 7, 2026 11:49
@clonker clonker requested a review from blishko May 7, 2026 11:49

@blishko blishko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@clonker clonker force-pushed the ssa-cfg-builder-share-function-registry branch from 8d6a53c to ee6668e Compare May 7, 2026 12:44
@clonker clonker merged commit 2f2e06b into develop May 7, 2026
77 of 82 checks passed
@clonker clonker deleted the ssa-cfg-builder-share-function-registry branch May 7, 2026 13:13
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