Improve and refactor StgToCmm codegen for DataCons.
We now differentiate three cases of constructor bindings: 1)Bindings which we can "replace" with a reference to an existing closure. Reference the replacement closure when accessing the binding. 2)Bindings which we can "replace" as above. But we still generate a closure which will be referenced by modules importing this binding. 3)For any other binding generate a closure. Then reference it. Before this patch 1) did only apply to local bindings and we didn't do 2) at all.
parent
ef7576c4
No related branches found
No related tags found
Pipeline #17544 passed with warnings
Stage: lint
Stage: quick-build
Stage: build
Stage: full-build
Stage: cleanup
Stage: packaging
Stage: testing
Stage: deploy
Loading
-
mentioned in merge request !2574 (closed)
-
mentioned in commit 513d6682
-
mentioned in merge request !3033 (merged)
-
mentioned in commit 40a85563
-
mentioned in issue #16961 (closed)
Please register or sign in to comment