-
Notifications
You must be signed in to change notification settings - Fork 154
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
Callgraph after normalization contains recursive components #2839
Comments
After GHC desugaring we get:
but then after GHC optimisation we get:
The best that Clash can currently do is:
Where the clash-compiler/clash-lib/src/Clash/Normalize/Transformations/Letrec.hs Lines 266 to 270 in 10f26ff
|
Actually, it seems ANF already does the right thing:
It's the subsequent
|
christiaanb
added a commit
that referenced
this issue
Nov 18, 2024
This prevents `recToLetRec` from turning a globally recursive function into a local let-bound recursive function which can be synthesized to hardware. Fixes #2839
2 tasks
christiaanb
added a commit
that referenced
this issue
Nov 18, 2024
This prevents `recToLetRec` from turning a globally recursive function into a local let-bound recursive function which can be synthesized to hardware. Fixes #2839
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably related to my reproducers in #2570.
Using GHC 9.8.2, the following code:
gives
Full output
The text was updated successfully, but these errors were encountered: