summaryrefslogtreecommitdiff
path: root/testsuite/mk
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-03-11 13:48:05 -0500
committerBen Gamari <ben@smart-cactus.org>2022-05-09 17:59:04 -0400
commitfb42a0eb55473bdf0638aba202c81b968accef3b (patch)
treeb36c641d2f6b73f57a52a0f853cee0a4c110f764 /testsuite/mk
parentec4d47dc6b607b7bfbd5c0b76fbd28a1bd9cb3ff (diff)
downloadhaskell-wip/T20959.tar.gz
codeGen: Ensure that static datacon apps are included in SRTswip/T20959
When generating an SRT for a recursive group, GHC.Cmm.Info.Build.oneSRT filters out recursive references, as described in Note [recursive SRTs]. However, doing so for static functions would be unsound, for the reason described in Note [Invalid optimisation: shortcutting]. However, the same argument applies to static data constructor applications, as we discovered in #20959. Fix this by ensuring that static data constructor applications are included in recursive SRTs. The approach here is not entirely satisfactory, but it is a starting point. Fixes #20959.
Diffstat (limited to 'testsuite/mk')
0 files changed, 0 insertions, 0 deletions