summaryrefslogtreecommitdiff
path: root/utils/deriveConstants
diff options
context:
space:
mode:
authorMateusz Lenik <mlen@mlen.pl>2016-05-17 08:33:54 +0200
committerBen Gamari <ben@smart-cactus.org>2016-05-18 20:14:31 +0200
commitf0f0ac859257a0b528815adb61d3f024c8bafa16 (patch)
treef418e1de12d7046d7f9d6ce815a8cb8865786b40 /utils/deriveConstants
parentfffe3a25adab41d44943ed1be0191cf570d3e154 (diff)
downloadhaskell-f0f0ac859257a0b528815adb61d3f024c8bafa16.tar.gz
Fix histograms for ticky code
This patch fixes Cmm generation required to produce histograms when compiling with -ticky flag, strips dead code from rts/Ticky.c and reworks it to use a shared constant in both C and Haskell code. Fixes #8308. Test Plan: T8308 Reviewers: jstolarek, simonpj, austin Reviewed By: simonpj Subscribers: mpickering, simonpj, bgamari, mlen, thomie, jstolarek Differential Revision: https://phabricator.haskell.org/D931 GHC Trac Issues: #8308
Diffstat (limited to 'utils/deriveConstants')
-rw-r--r--utils/deriveConstants/Main.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/deriveConstants/Main.hs b/utils/deriveConstants/Main.hs
index 1878fd9daf..16f3255eb8 100644
--- a/utils/deriveConstants/Main.hs
+++ b/utils/deriveConstants/Main.hs
@@ -315,6 +315,9 @@ wanteds os = concat
,constantWord Both "BLOCKS_PER_MBLOCK" "BLOCKS_PER_MBLOCK"
-- could be derived, but better to save doing the calculation twice
+ ,constantWord Both "TICKY_BIN_COUNT" "TICKY_BIN_COUNT"
+ -- number of bins for histograms used in ticky code
+
,fieldOffset Both "StgRegTable" "rR1"
,fieldOffset Both "StgRegTable" "rR2"
,fieldOffset Both "StgRegTable" "rR3"