Skip to content
  • Simon Peyton Jones's avatar
    Make exprIsConApp_maybe work better for literals strings · a6e13d50
    Simon Peyton Jones authored
    There are two things here
    
    * Use exprIsLiteral_maybe to "look through" a variable bound
      to a literal string.
    
    * Add CONLIKE to the NOINLINE pragma for unpackCString# and
      unpackCStringUtf8#
    
    See Trac #13317, Trac #10844, and
    Note [exprIsConApp_maybe on literal strings] in CoreSubst
    
    I did a nofib run and got essentially zero change except for one
    2.2% improvement in allocation for 'pretty'.
    a6e13d50