Skip to content

Conversation

@copybara-service
Copy link

[codegen 1.5] Enable almost all Function-oriented block conversion tests

Required adding additional passes to the block conversion pipeline in order to clean up unnecessary flow-control logic & registers:

  1. a new RegisterCleanupPass to remove unused registers and simplify register writes, and
  2. a final DeadCodeEliminationPass to remove all remaining dead nodes.

We also needed a small patch to FunctionIOLoweringPass - and a slightly-larger patch to FlowControlInsertionPass to avoid maintaining unnecessary flow control logic for a function meant to ignore I/O validity.

@copybara-service copybara-service bot force-pushed the test_848321070 branch 4 times, most recently from f8fcddd to a606606 Compare January 2, 2026 14:14
Required adding additional passes to the block conversion pipeline in order to clean up unnecessary flow-control logic & registers:

1. a new `RegisterCleanupPass` to remove unused registers and simplify register writes, and
2. a final `DeadCodeEliminationPass` to remove all remaining dead nodes.

We also needed a small patch to `FunctionIOLoweringPass` - and a slightly-larger patch to `FlowControlInsertionPass` to avoid maintaining unnecessary flow control logic for a function meant to ignore I/O validity.

PiperOrigin-RevId: 851326806
@copybara-service copybara-service bot merged commit 45c9bdc into main Jan 2, 2026
@copybara-service copybara-service bot deleted the test_848321070 branch January 2, 2026 14:52
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