Skip to content

[FIRRTL] Replace remove-unused-ports with port-only IMDCE mode#10575

Open
uenoku wants to merge 1 commit into
llvm:mainfrom
uenoku:dev/hidetou/remove-unused-ports
Open

[FIRRTL] Replace remove-unused-ports with port-only IMDCE mode#10575
uenoku wants to merge 1 commit into
llvm:mainfrom
uenoku:dev/hidetou/remove-unused-ports

Conversation

@uenoku
Copy link
Copy Markdown
Member

@uenoku uenoku commented Jun 2, 2026

This PR replaces RemoveUnusedPorts with IMDCE by adding a new mode to IMDCE as mentioned in #10501.

To mimic the old RemoveUnusedPorts behavior, this PR adds two options (1) dropping donttouch (2) remove only ports. Maybe it might be better to move (1) to reduction pattern instead of implementing in IMDCE pass, though.

Invalid value propagation is added as well to pass the old test.

This PR fixes crashes in #10501 and #10504. IMDCE doesn't eliminate property/instance choices at this point though.

Close #3377.

Assisted-by: claude code: sonnet 4.6

@uenoku uenoku force-pushed the dev/hidetou/remove-unused-ports branch from df39e83 to 85c55f9 Compare June 2, 2026 00:16
@circt-bot
Copy link
Copy Markdown

circt-bot Bot commented Jun 2, 2026

Results of circt-tests run for 85c55f9 compared to results for a8e5943: no change to test results.

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.

[FIRRTL] Remove RemoveUnusedPorts pass

1 participant