[Git][ghc/ghc][wip/perf-late-ccs] hadrian: enable late-CCS for perf flavour as well

Cheng Shao (@TerrorJack) gitlab at gitlab.haskell.org
Tue Oct 22 10:10:23 UTC 2024



Cheng Shao pushed to branch wip/perf-late-ccs at Glasgow Haskell Compiler / GHC


Commits:
2c6cad4b by Cheng Shao at 2024-10-22T12:09:52+02:00
hadrian: enable late-CCS for perf flavour as well

This patch enables late-CCS for perf flavour so that the testsuite can
pass for perf as well. Fixes #25308.

- - - - -


3 changed files:

- hadrian/doc/flavours.md
- hadrian/src/Settings/Flavours/Performance.hs
- hadrian/src/Settings/Flavours/Release.hs


Changes:

=====================================
hadrian/doc/flavours.md
=====================================
@@ -107,7 +107,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
     <td>-O2</td>
   </tr>
   <tr>
-    <th>release (same as perf with -haddock and +late-ccs)</td>
+    <th>release (same as perf with -haddock)</td>
     <td></td>
     <td>-O<br>-H64m</td>
     <td>-O<br>-H64m</td>
@@ -323,7 +323,7 @@ The supported transformers are listed below:
     </tr>
     <tr>
         <td><code>late_ccs</code></td>
-        <td>Enable <code>-fprof-late</code> in profiled libraries.</td>
+        <td>Enable <code>-fprof-late</code> in profiled libraries. Enabled in <code>perf</code> and <code>release</code> flavours.</td>
     </tr>
     <tr>
         <td><code>dump_stg</code></td>


=====================================
hadrian/src/Settings/Flavours/Performance.hs
=====================================
@@ -6,7 +6,7 @@ import {-# SOURCE #-} Settings.Default
 
 -- Please update doc/flavours.md when changing this file.
 performanceFlavour :: Flavour
-performanceFlavour = splitSections $ defaultFlavour
+performanceFlavour = splitSections $ enableLateCCS $ defaultFlavour
     { name = "perf"
     , extraArgs = performanceArgs <> defaultHaddockExtraArgs }
 


=====================================
hadrian/src/Settings/Flavours/Release.hs
=====================================
@@ -4,4 +4,4 @@ import Settings.Flavours.Performance
 import Flavour
 
 releaseFlavour :: Flavour
-releaseFlavour = enableLateCCS $ enableHaddock performanceFlavour { name = "release" }
+releaseFlavour = enableHaddock performanceFlavour { name = "release" }



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2c6cad4b70cabc4f75ea9cfdd618296ac443c1ef

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2c6cad4b70cabc4f75ea9cfdd618296ac443c1ef
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/20241022/ef04c16e/attachment-0001.html>


More information about the ghc-commits mailing list