Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt_clean: Add commentary, remove dead code #4123

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

povik
Copy link
Member

@povik povik commented Jan 9, 2024

(This is a by-product of investigating the hang from #4118.)

See the commits.

@@ -418,6 +438,9 @@ bool rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool verbos
goto delete_this_wire;
} else
if (!used_signals.check_any(s2)) {
// this path shouldn't be possible: this wire is used directly (otherwise it would get cleaned up above), and indirectly
// used wires are a superset of those used directly
log_assert(false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed the commits piecemeal so there's a CI job with this assertion in place.

@povik
Copy link
Member Author

povik commented Jan 29, 2024

Rebased and dropped the final patch removing the assertion. To play it safe we plan to keep the assertion in for a release or two. Removal of the assertion is staged in #4169.

@nakengelhardt nakengelhardt merged commit f96e27a into YosysHQ:master Feb 5, 2024
17 checks passed
@povik povik deleted the clean-opt_clean branch June 24, 2024 13:35
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.

2 participants