diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2017-02-23 14:41:08 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2017-02-24 09:04:46 +0000 |
commit | a6e13d502ef46de854ec1babcd764ccce68c95e3 (patch) | |
tree | f6ace9b7af1b394546a885f1b2bb0699b67ccc37 /compiler/parser/ApiAnnotation.hs | |
parent | c88b7c9a06e387c3b9bdb359b9e1e4f3a9fba696 (diff) | |
download | haskell-a6e13d502ef46de854ec1babcd764ccce68c95e3.tar.gz |
Make exprIsConApp_maybe work better for literals strings
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'.
Diffstat (limited to 'compiler/parser/ApiAnnotation.hs')
0 files changed, 0 insertions, 0 deletions