summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSimon Peyton Jones <simon.peytonjones@gmail.com>2023-01-12 22:21:40 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-31 13:08:38 -0500
commita83c810d26aab5944aa8d4821e00bd3938557f2e (patch)
treed7c93cfa2cbf3443c146b8c0100639d29bf96ca3 /.gitlab-ci.yml
parent765fab98b0795bbe8ad50796c55b9408a2af54cf (diff)
downloadhaskell-a83c810d26aab5944aa8d4821e00bd3938557f2e.tar.gz
Improve exprOkForSpeculation for classops
This patch fixes #22745 and #15205, which are about GHC's failure to discard unnecessary superclass selections that yield coercions. See GHC.Core.Utils Note [exprOkForSpeculation and type classes] The main changes are: * Write new Note [NON-BOTTOM_DICTS invariant] in GHC.Core, and refer to it * Define new function isTerminatingType, to identify those guaranteed-terminating dictionary types. * exprOkForSpeculation has a new (very simple) case for ClassOpId * ClassOpId has a new field that says if the return type is an unlifted type, or a terminating type. This was surprisingly tricky to get right. In particular note that unlifted types are not terminating types; you can write an expression of unlifted type, that diverges. Not so for dictionaries (or, more precisely, for the dictionaries that GHC constructs). Metric Decrease: LargeRecord
Diffstat (limited to '.gitlab-ci.yml')
0 files changed, 0 insertions, 0 deletions