diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2016-02-08 17:41:58 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2016-02-08 17:44:53 +0000 |
commit | 489a9a3beeeae3d150761ef863b4757eba0b02d9 (patch) | |
tree | a03c33230b3dd0d7004ae00bde990b9794563631 /compiler/codeGen/StgCmm.hs | |
parent | c9ac9de78254fb6bf463fd6370be7a7214b3e649 (diff) | |
download | haskell-489a9a3beeeae3d150761ef863b4757eba0b02d9.tar.gz |
Define tyConRolesRepresentational and use it
tyConRolesRepresentational is just a version of tyConRolesX, but
specialised for a Representational argument. Saves a bit of extra
argument passing and pattern matching, and tyConRolesX was often
called when we knew the argument role was Representational.
Rather to my surprise this made the compiler allocate 5% less
for tests T9872{b,c,d}. At least I think it's this commit.
Good thing, regardless.
Diffstat (limited to 'compiler/codeGen/StgCmm.hs')
0 files changed, 0 insertions, 0 deletions