summaryrefslogtreecommitdiff
path: root/compiler/GHC/Unit/Module/Graph.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-06-03 23:04:13 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-06-03 23:40:34 +0100
commit95c57dd21b885f253de0b68d6c8349dd34e6471b (patch)
treecc5bc42bc828441bc6bf5872d85593639f91e192 /compiler/GHC/Unit/Module/Graph.hs
parent7a05185a2b73c1f1c37e003178ea49667f66a462 (diff)
downloadhaskell-wip/t19894.tar.gz
profiling: Look in RHS of rules for cost centre tickswip/t19894
There are some obscure situations where the RHS of a rule can contain a tick which is not mentioned anywhere else in the program. If this happens you end up with an obscure linker error. The solution is quite simple, traverse the RHS of rules to also look for ticks. It turned out to be easier to implement if the traversal was moved into CoreTidy rather than at the start of code generation because there we still had easy access to the rules. ./StreamD.o(.text+0x1b9f2): error: undefined reference to 'StreamK_mkStreamFromStream_HPC_cc' ./MArray.o(.text+0xbe83): error: undefined reference to 'StreamK_mkStreamFromStream_HPC_cc' Main.o(.text+0x6fdb): error: undefined reference to 'StreamK_mkStreamFromStream_HPC_cc'
Diffstat (limited to 'compiler/GHC/Unit/Module/Graph.hs')
0 files changed, 0 insertions, 0 deletions