-
Notifications
You must be signed in to change notification settings - Fork 156
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
|
This prevents `recToLetRec` from turning a globally recursive function into a local let-bound recursive function which can be synthesized to hardware. Fixes #2839
This prevents `recToLetRec` from turning a globally recursive function into a local let-bound recursive function which can be synthesized to hardware. Fixes #2839
We've released v1.8.2, which includes a fix for this issue. |
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: