[Git][ghc/ghc][master] Compile Word64{Map,Set} with -O2 always.
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 5236634a by Andreas Klebinger at 2026-09-17T14:58:24-04:00 Compile Word64{Map,Set} with -O2 always. This is the hottest code and even if we build GHC with -O0 otherwise -O2 pays off for these modules. Fixes #27814. - - - - - 3 changed files: - compiler/GHC/Data/Word64Map/Internal.hs - compiler/GHC/Data/Word64Map/Strict/Internal.hs - compiler/GHC/Data/Word64Set/Internal.hs Changes: ===================================== compiler/GHC/Data/Word64Map/Internal.hs ===================================== @@ -3,6 +3,8 @@ {-# OPTIONS_HADDOCK not-home #-} {-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-} +-- Speeds up otherwise unoptimized ghcs by 5-25% (#27814) +{-# OPTIONS_GHC -O2 #-} ----------------------------------------------------------------------------- ===================================== compiler/GHC/Data/Word64Map/Strict/Internal.hs ===================================== @@ -1,5 +1,7 @@ {-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-} +-- Speeds up otherwise unoptimized ghcs by 5-25% (#27814) +{-# OPTIONS_GHC -O2 #-} ----------------------------------------------------------------------------- -- | ===================================== compiler/GHC/Data/Word64Set/Internal.hs ===================================== @@ -2,6 +2,8 @@ {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_HADDOCK not-home #-} +-- Speeds up otherwise unoptimized ghcs by 5-25% (#27814) +{-# OPTIONS_GHC -O2 #-} ----------------------------------------------------------------------------- -- | View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5236634abce50db7e8e7ecf375def90b... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5236634abce50db7e8e7ecf375def90b... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Marge Bot (@marge-bot)