[Git][ghc/ghc][wip/enable-late-ccs-release] 2 commits: testsuite: Fix normalisation of prof_files removing newlines

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Wed Sep 25 10:42:44 UTC 2024



Matthew Pickering pushed to branch wip/enable-late-ccs-release at Glasgow Haskell Compiler / GHC


Commits:
92e8b1aa by Matthew Pickering at 2024-09-25T11:42:32+01:00
testsuite: Fix normalisation of prof_files removing newlines

These normalisation steps were collapsing lines together, which made
subsequent normalisation steps fail.

```
foo x y z
CAF x y z
qux x y z
```

was getting normalised to

```
foo x y z qux x y z
```

which means that subsequent line based filters would not work correctly.

- - - - -
980548bd by Matthew Pickering at 2024-09-25T11:42:32+01:00
packaging: Enable late-ccs for release flavour

This enables late cost centres when building profiled libraries and
subsequently greatly improves the resolution of cost centre stacks when
profiling.

This patch also introduces the `grep_prof` test modifier which is used
to apply a further filter to the .prof file before they are compared.

Fixes #21732

-------------------------
Metric Increase:
    libdir
-------------------------

- - - - -


12 changed files:

- hadrian/doc/flavours.md
- hadrian/src/Flavour.hs
- hadrian/src/Settings/Flavours/Release.hs
- testsuite/driver/testglobals.py
- testsuite/driver/testlib.py
- testsuite/tests/codeGen/should_run/cgrun057.stderr
- testsuite/tests/profiling/should_run/T12962.prof.sample
- testsuite/tests/profiling/should_run/T2552.prof.sample
- testsuite/tests/profiling/should_run/T5559.prof.sample
- testsuite/tests/profiling/should_run/T5654-O0.prof.sample
- testsuite/tests/profiling/should_run/T5654-O1.prof.sample
- testsuite/tests/profiling/should_run/T5654b-O0.prof.sample


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ea8b2e7db800a80e2e1da30b4f7445dbd9b5b71d...980548bda4a0a59be38dc9a32957368ee4ef9177

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/ea8b2e7db800a80e2e1da30b4f7445dbd9b5b71d...980548bda4a0a59be38dc9a32957368ee4ef9177
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/20240925/be224b97/attachment-0001.html>


More information about the ghc-commits mailing list