This project is mirrored from https://gitlab.haskell.org/ghc/ghc.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
  1. 20 Sep, 2018 3 commits
  2. 19 Sep, 2018 3 commits
  3. 18 Sep, 2018 9 commits
  4. 16 Sep, 2018 11 commits
  5. 13 Sep, 2018 8 commits
  6. 12 Sep, 2018 2 commits
    • Simon Marlow's avatar
      Fix gcCAFs() · 75d3415b
      Simon Marlow authored
      The test here should have been changed after D1106.  It was harmless
      but we caught fewer GC'd CAFs than we should have.
      
      Test Plan:
      Using `nofib/imaginary/primes` compiled with `-debug`.
      
      Before:
      ```
      > ./primes 100 +RTS -G1 -A32k -DG
      CAF gc'd at 0x0x7b0960
      CAF gc'd at 0x0x788728
      CAF gc'd at 0x0x790db0
      CAF gc'd at 0x0x790de0
      12 CAFs live
      CAF gc'd at 0x0x788880
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      547
      CAF gc'd at 0x0x7995c8
      13 CAFs live
      ```
      
      After:
      
      ```
      > ./primes 100 +RTS -G1 -A32k -DG
      CAF gc'd at 0x0x7b0960
      CAF gc'd at 0x0x788728
      CAF gc'd at 0x0x790db0
      CAF gc'd at 0x0x790de0
      12 CAFs live
      CAF gc'd at 0x0x788880
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      12 CAFs live
      547
      CAF gc'd at 0x0x7995c8
      CAF gc'd at 0x0x790ea0
      12 CAFs live
      ```
      
      Reviewers: bgamari, osa1, erikd, noamz
      
      Reviewed By: bgamari
      
      Subscribers: rwbarton, thomie, carter
      
      Differential Revision: https://phabricator.haskell.org/D4963
      
      (cherry picked from commit e431d75f)
      75d3415b
    • Ben Gamari's avatar
      template-haskell: Fix typo in changelog · d2ac6e95
      Ben Gamari authored
      d2ac6e95
  7. 07 Sep, 2018 4 commits
    • Ben Gamari's avatar
      rts: Handle SMALL_MUT_ARR_PTRS in retainer profilter · 76a23314
      Ben Gamari authored
      Summary: These can be treated similarly to MUT_ARRY_PTRS. Fixes #15529.
      
      Reviewers: erikd, simonmar
      
      Reviewed By: simonmar
      
      Subscribers: RyanGlScott, rwbarton, carter
      
      GHC Trac Issues: #15529
      
      Differential Revision: https://phabricator.haskell.org/D5075
      
      (cherry picked from commit 2cf98e22)
      76a23314
    • chris-bacon's avatar
      Fixed typo in exponent example · 95b7b0a0
      chris-bacon authored
      (cherry picked from commit 36c1431d)
      95b7b0a0
    • Andrey Mokhov's avatar
      Fix a constant folding rule · f6595773
      Andrey Mokhov authored
      Summary:
      One of the constant folding rules introduced in D2858 is:
      
      ```
      (L y :-:   v) :-: (L x :-: w) -> return $ mkL (y-x)   `add` (w `add` v)
      ```
      
      Or, after removing syntactic noise: `(y - v) - (x - w) ==> (y - x) + (w + v)`.
      This is incorrect, since the sign of `v` is changed from negative to positive.
      As a consequence, the following program prints `3` when compiled with `-O`:
      
      ```
      -- This is just subtraction in disguise
      minus :: Int -> Int -> Int
      minus x y = (8 - y) - (8 - x)
      {-# NOINLINE minus #-}
      
      main :: IO ()
      main = print (2 `minus` 1)
      ```
      
      The correct rule is: `(y - v) - (x - w) ==> (y - x) + (w - v)`.
      
      This commit does the fix. I haven't found any other issues with the constant
      folding code, but it's difficult to be certain without some automated checking.
      
      Reviewers: bgamari, tdammers
      
      Subscribers: hsyl20, tdammers, rwbarton, carter
      
      GHC Trac Issues: #15569
      
      Differential Revision: https://phabricator.haskell.org/D5109
      
      (cherry picked from commit 65eec9cf)
      f6595773
    • Krzysztof Gogolewski's avatar
      Fix typo in 8.6.1 notes · 21545666
      Krzysztof Gogolewski authored
      (cherry picked from commit 34b8e613)
      21545666