diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-01-28 20:17:46 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-03 06:25:33 -0400 |
commit | 9462452a4843a2c42fe055a0a7e274d5164d1dc0 (patch) | |
tree | 38c148b865f883a7d29e0bc8cef1660a1dfb5e10 /testsuite/tests/codeGen | |
parent | ef7576c40f8de391ed8b1c81c38156202e6d17cf (diff) | |
download | haskell-9462452a4843a2c42fe055a0a7e274d5164d1dc0.tar.gz |
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.
Diffstat (limited to 'testsuite/tests/codeGen')
-rw-r--r-- | testsuite/tests/codeGen/should_compile/T15155l.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/codeGen/should_compile/T15155l.hs b/testsuite/tests/codeGen/should_compile/T15155l.hs index 6f39648630..3220c385f2 100644 --- a/testsuite/tests/codeGen/should_compile/T15155l.hs +++ b/testsuite/tests/codeGen/should_compile/T15155l.hs @@ -6,6 +6,6 @@ newtype A = A Int newtype B = B A {-# NOINLINE a #-} -a = trace "evaluating a" A 42 +a = trace "evaluating a" A 42000 b = B a |