diff options
author | Rodrigo Mesquita <rodrigo.m.mesquita@gmail.com> | 2023-04-17 12:04:40 +0100 |
---|---|---|
committer | Rodrigo Mesquita <rodrigo.m.mesquita@gmail.com> | 2023-04-28 17:18:55 +0100 |
commit | 7982d836b365ea35990b5064d0b71be410349edc (patch) | |
tree | 3e0f097b265aa1e810b566d598296a85d16fd843 /libraries/integer-gmp/GHC | |
parent | 4eaf2c2a7682fa9933261f5eb25da9e2333c9608 (diff) | |
download | haskell-wip/romes/isNullaryRepDataCon.tar.gz |
Precompute static closures for DataCons with zero-width argswip/romes/isNullaryRepDataCon
Relax the predicate over nullary datacons that determines whether we can
return a precomputed static closure for them, such that we give
precomputed static closures to both datacon workers and wrappers as long
as they only take zero-width arguments (and hence their closure is
comprised of just the constructor info).
Previously, we would only allow datacons that were nullary with regard
to their Core representation, which prevented datacons workers with only
zero-width arguments and wrappers with none from using a precomputed
static closure.
See Note [Precomputed static closures of nullary constructors]
Closes #23158
Diffstat (limited to 'libraries/integer-gmp/GHC')
0 files changed, 0 insertions, 0 deletions