[Git][ghc/ghc][wip/sjakobi/nondetfolds] Try strict fold in mk_mod_usage_info.ent_map
Simon Jakobi
gitlab at gitlab.haskell.org
Thu Apr 2 01:08:39 UTC 2020
Simon Jakobi pushed to branch wip/sjakobi/nondetfolds at Glasgow Haskell Compiler / GHC
Commits:
9ebc5d39 by Simon Jakobi at 2020-04-02T03:08:03+02:00
Try strict fold in mk_mod_usage_info.ent_map
- - - - -
1 changed file:
- compiler/GHC/HsToCore/Usage.hs
Changes:
=====================================
compiler/GHC/HsToCore/Usage.hs
=====================================
@@ -260,9 +260,9 @@ mk_mod_usage_info pit hsc_env this_mod direct_imports used_names
-- ent_map groups together all the things imported and used
-- from a particular module
ent_map :: ModuleEnv [OccName]
- ent_map = nonDetFoldUniqSet add_mv emptyModuleEnv used_names -- TODO?
- -- nonDetFoldUFM is OK here. If you follow the logic, we sort by OccName
- -- in ent_hashs
+ ent_map = nonDetStrictFoldUniqSet add_mv emptyModuleEnv used_names
+ -- nonDetStrictFoldUniqSet is OK here. If you follow the logic, we sort by
+ -- OccName in ent_hashs
where
add_mv name mv_map
| isWiredInName name = mv_map -- ignore wired-in names
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9ebc5d3925902fd43a8e06f72a225ab15d39aa4a
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9ebc5d3925902fd43a8e06f72a225ab15d39aa4a
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200401/4e207a61/attachment.html>
More information about the ghc-commits
mailing list