Skip to content

Conversation

@copybara-service
Copy link

Add a ReserveNodes method to DfsVisitor.

This allows visitors to pre-allocate space for visited nodes, potentially reducing reallocations. The DataflowSimplificationPass now uses this to reserve space based on the function's node count.

This allows visitors to pre-allocate space for visited nodes, potentially reducing reallocations. The DataflowSimplificationPass now uses this to reserve space based on the function's node count.

PiperOrigin-RevId: 861883542
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.

1 participant