[Git][ghc/ghc][wip/jeltsch/more-efficient-home-unit-imports-finding] Implement `completeUnits` based on `providerMap`
Wolfgang Jeltsch pushed to branch wip/jeltsch/more-efficient-home-unit-imports-finding at Glasgow Haskell Compiler / GHC Commits: 0ea88d7d by Wolfgang Jeltsch at 2026-04-11T20:42:01+03:00 Implement `completeUnits` based on `providerMap` - - - - - 1 changed file: - compiler/GHC/Unit/Module/Graph.hs Changes: ===================================== compiler/GHC/Unit/Module/Graph.hs ===================================== @@ -226,11 +226,7 @@ mkHomeModuleMap nodes = ModuleNameHomeMap completeUnits providerMap where ] completeUnits :: Set UnitId - completeUnits = Set.fromList $ - [ - moduleNodeInfoUnitId moduleNodeInfo | - ModuleNode _ moduleNodeInfo <- nodes - ] + completeUnits = Set.unions (Map.elems providerMap) mgHomeModuleMap :: ModuleGraph -> ModuleNameHomeMap mgHomeModuleMap = mg_home_map View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0ea88d7dec780e34f938f798661a9218... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0ea88d7dec780e34f938f798661a9218... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)