Fix over-eager constant folding in bitInteger
The RULE for bitInteger was trying to constant-fold bitInteger 9223372036854775807# which meant constructing a gigantic Integer at compile time. Very bad idea! Easily fixed. Fixes Trac #14959, #14962. (cherry picked from commit efc844f5)
Showing
- compiler/prelude/PrelRules.hs 36 additions, 16 deletionscompiler/prelude/PrelRules.hs
- testsuite/tests/simplCore/should_compile/T14959.hs 5 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T14959.hs
- testsuite/tests/simplCore/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment