[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 26 commits: rts/CNF: Fix fixup comparison function

Marge Bot gitlab at gitlab.haskell.org
Mon May 11 11:36:23 UTC 2020



 Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC


Commits:
4df3fc58 by Ben Gamari at 2020-05-11T07:35:36-04:00
rts/CNF: Fix fixup comparison function

Previously we would implicitly convert the difference between two words
to an int, resulting in an integer overflow on 64-bit machines.

Fixes #16992

- - - - -
3bfd9f37 by Ömer Sinan Ağacan at 2020-05-11T07:35:42-04:00
Pack some of IdInfo fields into a bit field

This reduces residency of compiler quite a bit on some programs.
Example stats when building T10370:

Before:

   2,871,242,832 bytes allocated in the heap
   4,693,328,008 bytes copied during GC
      33,941,448 bytes maximum residency (276 sample(s))
         375,976 bytes maximum slop
              83 MiB total memory in use (0 MB lost due to fragmentation)

After:

   2,858,897,344 bytes allocated in the heap
   4,629,255,440 bytes copied during GC
      32,616,624 bytes maximum residency (278 sample(s))
         314,400 bytes maximum slop
              80 MiB total memory in use (0 MB lost due to fragmentation)

So -3.9% residency, -1.3% bytes copied and -0.4% allocations.

Fixes #17497

Metric Decrease:
    T9233
    T9675

- - - - -
3f82ae6e by Simon Peyton Jones at 2020-05-11T07:35:42-04:00
Avoid useless w/w split

This patch is just a tidy-up for the post-strictness-analysis
worker wrapper split.  Consider

   f x = x

Strictnesss analysis does not lead to a w/w split, so the
obvious thing is to leave it 100% alone.  But actually, because
the RHS is small, we ended up adding a StableUnfolding for it.

There is some reason to do this if we choose /not/ do to w/w
on the grounds that the function is small.  See
Note [Don't w/w inline small non-loop-breaker things]

But there is no reason if we would not have done w/w anyway.

This patch just moves the conditional to later.  Easy.
This does move soem -ddump-simpl printouts around a bit.

I also discovered that the previous code was overwritten an
InlineCompulsory with InlineStable, which is utterly wrong.  That in
turn meant that some default methods (marked InlineCompulsory)
were getting their InlineCompulsory squashed. This patch fixes
that bug --- but of course that does mean a bit more inlining!

Metric Decrease:
    T9233
    T9675
Metric Increase:
    T12707
    T3064
    T4029
    T9872b
    T9872d
    haddock.Cabal

- - - - -
6d6b6152 by Ben Gamari at 2020-05-11T07:35:43-04:00
get-win32-tarballs: Fix base URL

Revert a change previously made for testing purposes.

- - - - -
89eadf1e by Ben Gamari at 2020-05-11T07:35:43-04:00
get-win32-tarballs: Improve diagnostics output

- - - - -
2617473a by Simon Jakobi at 2020-05-11T07:35:44-04:00
docs: Add examples for Data.Semigroup.Arg{Min,Max}

Context: #17153

- - - - -
e3344eb6 by Baldur Blöndal at 2020-05-11T07:35:47-04:00
Predicate, Equivalence derive via `.. -> a -> All'

- - - - -
7f3197a8 by Ben Gamari at 2020-05-11T07:35:48-04:00
Add few cleanups of the CAF logic

Give the NameSet of non-CAFfy names a proper newtype to distinguish it
from all of the other NameSets floating about.

- - - - -
762d6c2e by Emeka Nkurumeh at 2020-05-11T07:35:50-04:00
fix printf warning when using with ghc with clang on mingw
- - - - -
4f2f9952 by Daniel Gröber at 2020-05-11T07:35:56-04:00
Fix non power-of-two Storable.alignment in Capi_Ctype tests

Alignments passed to alloca and friends must be a power of two for the code
in allocatePinned to work properly. Commit 41230e2601 ("Zero out pinned
block alignment slop when profiling") introduced an ASSERT for this but
this test was still violating it.

- - - - -
d8eedfb5 by Daniel Gröber at 2020-05-11T07:35:56-04:00
Improve ByteArray# documentation regarding alignment

- - - - -
695e0866 by Daniel Gröber at 2020-05-11T07:35:56-04:00
Document word-size rounding of ByteArray# memory (Fix #14731)

- - - - -
0ea9ea4a by Daniel Gröber at 2020-05-11T07:35:56-04:00
Throw IOError when allocaBytesAligned gets non-power-of-two align

- - - - -
8f9179c3 by Artem Pelenitsyn at 2020-05-11T07:35:58-04:00
Don't reload environment files on every setSessionDynFlags

Makes `interpretPackageEnv` (which loads envirinment files) a part of
`parseDynamicFlags` (parsing command-line arguments, which is typically
done once) instead of `setSessionDynFlags` (which is typically called
several times). Making several (transitive) calls to `interpretPackageEnv`,
as before, caused #18125 #16318, which should be fixed now.

- - - - -
cc4da761 by Ben Gamari at 2020-05-11T07:35:59-04:00
GHC.Cmm.Opt: Handle MO_XX_Conv

This MachOp was introduced by 2c959a1894311e59cd2fd469c1967491c1e488f3
but a wildcard match in cmmMachOpFoldM hid the fact that it wasn't
handled. Ideally we would eliminate the match but this appears to be a
larger task.

Fixes #18141.

- - - - -
86c69d54 by Hécate at 2020-05-11T07:36:02-04:00
fix(documentation): Fix the RST links to GHC.Prim

- - - - -
c7bf65b0 by Baldur Blöndal at 2020-05-11T07:36:03-04:00
Document (->) using inferred quantification for its runtime representations.

Fixes #18142.

- - - - -
112214cb by Takenobu Tani at 2020-05-11T07:36:06-04:00
Tweak man page for ghc command

This commit updates the ghc command's man page as followings:

* Enable `man_show_urls` to show URL addresses in the `DESCRIPTION`
section of ghc.rst, because sphinx currently removes hyperlinks
for man pages.

* Add a `SEE ALSO` section to point to the GHC homepage

- - - - -
53a04549 by Takenobu Tani at 2020-05-11T07:36:08-04:00
GHCi: Add link to the user's guide in help message

This commit adds a link to the user's guide in ghci's
`:help` message.

Newcomers could easily reach to details of ghci.

- - - - -
806c84aa by Jeff Happily at 2020-05-11T07:36:10-04:00
Handle single unused import

- - - - -
756a5a96 by Ben Gamari at 2020-05-11T07:36:10-04:00
users-guide: Add discussion of shared object naming

Fixes #18074.

- - - - -
06e4f445 by Ben Gamari at 2020-05-11T07:36:11-04:00
Ensure that printMinimalImports closes handle

Fixes #18166.

- - - - -
de5a0d55 by Ben Gamari at 2020-05-11T07:36:11-04:00
testsuite: Print sign of performance changes

Executes the minor formatting change in the tabulated performance
changes suggested in #18135.

- - - - -
678d3246 by Ben Gamari at 2020-05-11T07:36:12-04:00
hadrian: Tell testsuite driver about LLVM availability

This reflects the logic present in the Make build system into Hadrian.

Fixes #18167.

- - - - -
82efb5ae by Ben Gamari at 2020-05-11T07:36:12-04:00
testsuite: Add testcase for #18129

- - - - -
df0c5d4e by Ben Gamari at 2020-05-11T07:36:13-04:00
Revert "Specify kind variables for inferred kinds in base."

As noted in !3132, this has rather severe knock-on consequences in
user-code. We'll need to revisit this before merging something along
these lines.

This reverts commit 9749fe1223d182b1f8e7e4f7378df661c509f396.

- - - - -


30 changed files:

- compiler/GHC.hs
- compiler/GHC/Builtin/Types/Prim.hs
- compiler/GHC/Builtin/primops.txt.pp
- compiler/GHC/Cmm/Info/Build.hs
- compiler/GHC/Cmm/Opt.hs
- compiler/GHC/Core/Coercion.hs
- compiler/GHC/Core/Opt/WorkWrap.hs
- compiler/GHC/Core/TyCo/Rep.hs
- compiler/GHC/Core/Type.hs
- compiler/GHC/Core/Unfold.hs
- compiler/GHC/Driver/Main.hs
- compiler/GHC/Iface/Make.hs
- compiler/GHC/Iface/UpdateCafInfos.hs
- compiler/GHC/Rename/Names.hs
- compiler/GHC/Types/Id/Info.hs
- compiler/GHC/Types/Name/Set.hs
- docs/users_guide/conf.py
- docs/users_guide/editing-guide.rst
- docs/users_guide/exts/ffi.rst
- docs/users_guide/exts/primitives.rst
- docs/users_guide/ghc.rst
- docs/users_guide/packages.rst
- docs/users_guide/phases.rst
- ghc/GHCi/UI.hs
- hadrian/src/Settings/Builders/RunTest.hs
- includes/rts/Messages.h
- libraries/base/Control/Arrow.hs
- libraries/base/Control/Category.hs
- libraries/base/Data/Data.hs
- libraries/base/Data/Dynamic.hs


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7988c647706dfb0bb9f9132c29ff89493ccfdf96...df0c5d4e8d76cefe793dfd0a8d6f698f51681e6c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7988c647706dfb0bb9f9132c29ff89493ccfdf96...df0c5d4e8d76cefe793dfd0a8d6f698f51681e6c
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/20200511/d569fcd1/attachment.html>


More information about the ghc-commits mailing list