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 2 times, most recently from 8cdc700 to 697d88e Compare December 30, 2025 19:40
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: 848321070
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