-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve non-recursive let in inlineCleanup
In #1980, Clash started to keep the distinction between recursive and non-recursive let expressions in Core (like GHC). However, for convenience the old Letrec constructor is still used in some places to avoid the need to fix every location at once. The `inlineCleanup` transformation was one such place, however the fix is relatively simple: when there is only one binder at the end of cleanup and the original let expression was non-recursive, this binding must also be non-recursive.
- Loading branch information
Alex McKenna
committed
Apr 6, 2022
1 parent
5a86ccf
commit f8590c8
Showing
2 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters