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.

@copybara-service copybara-service bot force-pushed the test_861883542 branch 3 times, most recently from 1dbbbe1 to 3b19e77 Compare January 28, 2026 16:57
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