summaryrefslogtreecommitdiff
path: root/testsuite/config/ghc
diff options
context:
space:
mode:
authorSven Tennie <sven.tennie@gmail.com>2021-05-13 15:26:32 +0200
committerSven Tennie <sven.tennie@gmail.com>2021-08-11 10:54:39 +0200
commitce2046fc61fffa9deb2b1240eee66f182572ed48 (patch)
treec9ac086d67f087dd35854707fd6252438445eb05 /testsuite/config/ghc
parent8b9acc4d58f51dcbae73c8226ef876218809fd79 (diff)
downloadhaskell-wip/IPE_hashmap.tar.gz
Optimize Info Table Provenance Entries (IPEs) Map creation and lookupwip/IPE_hashmap
Using a hash map reduces the complexity of lookupIPE(), making it non linear. On registration each IPE list is added to a temporary IPE lists buffer, reducing registration time. The hash map is built lazily on first lookup. IPE event output to stderr is added with tests. For details, please see Note [The Info Table Provenance Entry (IPE) Map]. A performance test for IPE registration and lookup can be found here: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/5724#note_370806
Diffstat (limited to 'testsuite/config/ghc')
-rw-r--r--testsuite/config/ghc3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/config/ghc b/testsuite/config/ghc
index 4ecdc5bcb0..6d90e83397 100644
--- a/testsuite/config/ghc
+++ b/testsuite/config/ghc
@@ -163,6 +163,9 @@ config.way_rts_flags = {
prof_ways = [x[0] for x in config.way_flags.items()
if '-prof' in x[1]]
+debug_ways = [x[0] for x in config.way_flags.items()
+ if '-debug' in x[1]]
+
threaded_ways = [x[0] for x in config.way_flags.items()
if '-threaded' in x[1] or 'ghci' == x[0]]