<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/haskell.git, branch wip/leif/stg-ttg</title>
<subtitle>gitlab.haskell.org: ghc/ghc.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/'/>
<entry>
<title>TTG-ify StgLam</title>
<updated>2021-01-11T23:25:46+00:00</updated>
<author>
<name>Leif Metcalf</name>
<email>me@leif.nz</email>
</author>
<published>2021-01-11T20:19:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=6b0808a672c65bb39dac559fb8a5c9cdc64cc5e2'/>
<id>6b0808a672c65bb39dac559fb8a5c9cdc64cc5e2</id>
<content type='text'>
This makes the StgLam constructor of StgExpr an extension using Trees
that Grow.  StgLam is used exclusively in the work of CoreToStg, but
there's nothing in the type of StgExpr that indicates this, so we're
forced throughout the Stg.* code to handle cases like:

case expr of
  ...
  StgLam lam -&gt; panic "Unexpected StgLam"
  ...

This patch removes the StgLam constructor from the base StgExpr so these
cases no longer need to be handled, except in one case. We still need to
convert from SgStgRhs (the type with StgLam) to StgRhs (the type without
StgLam) after CoreToStg has finished. This conversion is safe because
CorePrep guarantees that no value lambdas exist except as the body of a
let binding.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes the StgLam constructor of StgExpr an extension using Trees
that Grow.  StgLam is used exclusively in the work of CoreToStg, but
there's nothing in the type of StgExpr that indicates this, so we're
forced throughout the Stg.* code to handle cases like:

case expr of
  ...
  StgLam lam -&gt; panic "Unexpected StgLam"
  ...

This patch removes the StgLam constructor from the base StgExpr so these
cases no longer need to be handled, except in one case. We still need to
convert from SgStgRhs (the type with StgLam) to StgRhs (the type without
StgLam) after CoreToStg has finished. This conversion is safe because
CorePrep guarantees that no value lambdas exist except as the body of a
let binding.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update expected-undocumented-flags.txt</title>
<updated>2021-01-11T04:35:35+00:00</updated>
<author>
<name>Benjamin Maurer</name>
<email>maurer.benjamin@gmail.com</email>
</author>
<published>2021-01-09T13:51:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=0dba78410887ffc3d219639081e284ef7b67560a'/>
<id>0dba78410887ffc3d219639081e284ef7b67560a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Document flag -dasm-lint in debugging.rst</title>
<updated>2021-01-11T04:35:35+00:00</updated>
<author>
<name>Benjamin Maurer</name>
<email>maurer.benjamin@gmail.com</email>
</author>
<published>2021-01-09T13:47:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=2f933eb60de75411a68e16e0b6d72dd8f8bff2bc'/>
<id>2f933eb60de75411a68e16e0b6d72dd8f8bff2bc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>WorkWrap: Use SysLocal Name for Thunk Splitting (#19180)</title>
<updated>2021-01-11T04:34:59+00:00</updated>
<author>
<name>Sebastian Graf</name>
<email>sebastian.graf@kit.edu</email>
</author>
<published>2021-01-07T17:35:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=1a220bcf704f6ce1404516a5b647246a20d34f6e'/>
<id>1a220bcf704f6ce1404516a5b647246a20d34f6e</id>
<content type='text'>
Since !4493 we annotate top-level bindings with demands, which leads to
novel opportunities for thunk splitting absent top-level thunks.

It turns out that thunk splitting wasn't quite equipped for that,
because it re-used top-level, `External` Names for local helper Ids.
That triggered a CoreLint error (#19180), reproducible with `T19180`.

Fixed by adjusting the thunk splitting code to produce `SysLocal` names
for the local bindings.

Fixes #19180.

Metric Decrease:
    T12227
    T18282
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since !4493 we annotate top-level bindings with demands, which leads to
novel opportunities for thunk splitting absent top-level thunks.

It turns out that thunk splitting wasn't quite equipped for that,
because it re-used top-level, `External` Names for local helper Ids.
That triggered a CoreLint error (#19180), reproducible with `T19180`.

Fixed by adjusting the thunk splitting code to produce `SysLocal` names
for the local bindings.

Fixes #19180.

Metric Decrease:
    T12227
    T18282
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix `not32Word#` -&gt; `notWord32#`</title>
<updated>2021-01-10T10:37:19+00:00</updated>
<author>
<name>John Ericson</name>
<email>git@JohnEricson.me</email>
</author>
<published>2019-10-19T22:59:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=4bb957de6e32722d04f47ddd57b6010dbc7770d2'/>
<id>4bb957de6e32722d04f47ddd57b6010dbc7770d2</id>
<content type='text'>
This is is correcting a mistake I unfortunately missed in !4698. But
that is a recent PR so this fix is not a compatibility hazard with
released versions of GHC.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is is correcting a mistake I unfortunately missed in !4698. But
that is a recent PR so this fix is not a compatibility hazard with
released versions of GHC.
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct more doctests</title>
<updated>2021-01-10T10:36:43+00:00</updated>
<author>
<name>Oleg Grenrus</name>
<email>oleg.grenrus@iki.fi</email>
</author>
<published>2020-12-28T13:04:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=a2567e99ecda3f92c24dcdb97c098e39a33aab11'/>
<id>a2567e99ecda3f92c24dcdb97c098e39a33aab11</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix calls to varargs C function fcntl</title>
<updated>2021-01-10T02:25:19+00:00</updated>
<author>
<name>Nick Erdmann</name>
<email>n@nirf.de</email>
</author>
<published>2021-01-06T19:21:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=4d1ea2c3dfc75b17dbd6f16e12bf7d037c708622'/>
<id>4d1ea2c3dfc75b17dbd6f16e12bf7d037c708622</id>
<content type='text'>
The ccall calling convention doesn't support varargs functions, so
switch to capi instead. See
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/ffi.html#varargs-not-supported-by-ccall-calling-convention
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ccall calling convention doesn't support varargs functions, so
switch to capi instead. See
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/ffi.html#varargs-not-supported-by-ccall-calling-convention
</pre>
</div>
</content>
</entry>
<entry>
<title>testsuite: Increase delay in conc059</title>
<updated>2021-01-10T02:24:42+00:00</updated>
<author>
<name>Ben Gamari</name>
<email>ben@smart-cactus.org</email>
</author>
<published>2021-01-06T00:51:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=78629c2480d6d15616cb8c2614f7b19c33c003ad'/>
<id>78629c2480d6d15616cb8c2614f7b19c33c003ad</id>
<content type='text'>
As noted in #19179, conc059 can sometimes fail due to too short of a
delay in the its Haskell threads. Address this by increasing the delay
by an order of magnitude to 5 seconds.

While I'm in town I refactored the test to eliminate a great deal of
unnecessary platform dependence, eliminate use of the deprecated
usleep, and properly handle interruption by signals.

Fixes #19179.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As noted in #19179, conc059 can sometimes fail due to too short of a
delay in the its Haskell threads. Address this by increasing the delay
by an order of magnitude to 5 seconds.

While I'm in town I refactored the test to eliminate a great deal of
unnecessary platform dependence, eliminate use of the deprecated
usleep, and properly handle interruption by signals.

Fixes #19179.
</pre>
</div>
</content>
</entry>
<entry>
<title>Natural: fix left shift of 0 (fix #19170)</title>
<updated>2021-01-10T02:24:06+00:00</updated>
<author>
<name>Sylvain Henry</name>
<email>sylvain@haskus.fr</email>
</author>
<published>2021-01-05T10:26:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=2754419673eabea772f27e9ad9275ef6acaddae3'/>
<id>2754419673eabea772f27e9ad9275ef6acaddae3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gone_wrong.rst: remove duplicate term</title>
<updated>2021-01-10T02:23:27+00:00</updated>
<author>
<name>Greg Steuck</name>
<email>greg@nest.cx</email>
</author>
<published>2021-01-02T17:22:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=9163b3f104cfe9b9da235f3bf4427d0579f8642e'/>
<id>9163b3f104cfe9b9da235f3bf4427d0579f8642e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
