Commit 12191a99 authored by Committed by Marge Bot
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).
Showing with 26 additions and 3 deletions