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

Make sure clashSimulation is False in HDL even with -O2 #2737

Merged
merged 2 commits into from
Jun 30, 2024

Conversation

leonschoorl
Copy link
Member

Fixes #2736
Also found that the test for #1796 was broken.

Still TODO:

  • Write a changelog entry (see changelog/README.md)
  • Check copyright notices are up to date in edited files

Something probably changed since it was introduced.
It would prefer to read the source instead of the precompiled module and always succeed, even with the original fix reverted.
The SpecConstr pass in GHC is able to poke through the OPAQUE of
clashSimulation.
Adding a noinline seems to block it from seeing the True inside.

Fixes #2736
@martijnbastiaan martijnbastiaan merged commit ebde652 into master Jun 30, 2024
11 checks passed
@martijnbastiaan martijnbastiaan deleted the fix2736 branch June 30, 2024 07:05
martijnbastiaan added a commit that referenced this pull request Jun 30, 2024
Make sure clashSimulation is False in HDL even with -O2 (copy #2737)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enabling -O2 breaks Clash.Magic.clashSimulation
2 participants