diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-10-02 16:41:40 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-10-09 08:47:00 -0400 |
commit | 12191a99d3b978b697ec0fb4412276fbea5dce8f (patch) | |
tree | f4c60bed13d6141e817bda264b24a4a3ab9ae0b6 /compiler/GHC/Parser.y | |
parent | e691a5a04692beb601d480ccf9f283199a70ed62 (diff) | |
download | haskell-12191a99d3b978b697ec0fb4412276fbea5dce8f.tar.gz |
Bignum: match on small Integer/Natural
Previously we only matched on *variables* whose unfoldings were a ConApp
of the form `IS lit#` or `NS lit##`. But we forgot to match on the
ConApp directly... As a consequence, constant folding only worked after
the FloatOut pass which creates bindings for most sub-expressions. With
this patch, matching on bignums works even with -O0 (see bignumMatch
test).
Diffstat (limited to 'compiler/GHC/Parser.y')
0 files changed, 0 insertions, 0 deletions