• Simon Peyton Jones's avatar
    Recover proper sharing for Integer literals · ca380cd1
    Simon Peyton Jones authored
    Trac #5549 showed a loss of performance for GHC 7.4.
    What was happening was that an integer literal was being
    allocated each time around a loop, rather than being
    floated to top level and shared.
    
    Two fixes
     * Make the float-out pass float literals that are non-trivial
     * Make the inliner *not* treat Integer literals as size-zero
    ca380cd1
Literal.lhs 18.4 KB