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 5 times, most recently from 84f880b to 8292f28 Compare January 28, 2026 20:40
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: 862366169
@copybara-service copybara-service bot merged commit b736a51 into main Jan 28, 2026
@copybara-service copybara-service bot deleted the test_861883542 branch January 28, 2026 21:19
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