1. 11 Mar, 2014 5 commits
    • Simon Marlow's avatar
      Represent offsets into heap objects with byte, not word, offsets · a70e7b47
      Simon Marlow authored
      I'd like to be able to pack together non-pointer fields that are less
      than a word in size, and this is a necessary prerequisite.
      a70e7b47
    • tibbe's avatar
      codeGen: allocate small arrays of statically known size inline · 22f010e0
      tibbe authored
      This results in a 46% runtime decrease when allocating an array of 16
      unit elements on a 64-bit machine.
      
      In order to allow newArray# to have both an inline and an out-of-line
      implementation, cgOpApp is refactored slightly. The new implementation
      of cgOpApp should make it easier to add other primops with both inline
      and out-of-line implementations in the future.
      22f010e0
    • Simon Peyton Jones's avatar
      Fix last-minute typo in SetLevels commit ef44a4 · 41f80310
      Simon Peyton Jones authored
      Sorry about that...
      41f80310
    • Simon Peyton Jones's avatar
      Make SetLevels do substitution properly (fixes Trac #8714) · ef44a429
      Simon Peyton Jones authored
      Nowadays SetLevels floats case expressions as well as let-bindings,
      and case expressions bind type variables.  We need to clone all such
      floated binders, to avoid accidental name capture.  But I'd forgotten
      to substitute for the cloned type variables, causing #8714.  (In the
      olden days only Ids were cloned, from let-bindings.)
      
      This patch fixes the bug and does quite a bit of clean-up refactoring
      as well, by putting the context level in the LvlEnv.
      
      There is no effect on performance, except that nofib 'rewrite' improves
      allocations by 3%.  On investigation I think it was a fluke to do with
      loop-cutting in big letrec nests.  But at least it's a fluke in the
      right direction.
      
              Program           Size    Allocs   Runtime   Elapsed  TotalMem
      --------------------------------------------------------------------------------
                  Min          -0.4%     -3.0%    -19.4%    -19.4%    -26.7%
                  Max          -0.0%     +0.0%    +17.9%    +17.9%      0.0%
       Geometric Mean          -0.1%     -0.0%     -0.7%     -0.7%     -0.4%
      ef44a429
    • Simon Peyton Jones's avatar
      Comments only · a10ed3e6
      Simon Peyton Jones authored
      a10ed3e6
  2. 10 Mar, 2014 4 commits
  3. 08 Mar, 2014 1 commit
  4. 07 Mar, 2014 6 commits
  5. 06 Mar, 2014 5 commits
  6. 05 Mar, 2014 2 commits
    • Gabor Greif's avatar
      Typos in comments · 2d828460
      Gabor Greif authored
      2d828460
    • Joachim Breitner's avatar
      Major Call Arity rework · cb8a63cb
      Joachim Breitner authored
      This patch improves the call arity analysis in various ways.
      
      Most importantly, it enriches the analysis result information so that
      when looking at a call, we do not have to make a random choice about
      what side we want to take the information from. Instead we can combine
      the results in a way that does not lose valuable information.
      
      To do so, besides the incoming arities, we store remember "what can be
      called with what", i.e. an undirected graph between the (interesting)
      free variables of an expression. Of course it makes combining the
      results a bit more tricky (especially mutual recursion), but still
      doable.
      
      The actually implemation of the graph structure is abstractly put away
      in a module of its own (UnVarGraph.hs)
      
      The implementation is geared towards efficiently representing the graphs
      that we need (which can contain large complete and large complete
      bipartite graphs, which would be huge in other representations). If
      someone feels like designing data structures: There is surely some
      speed-up to be obtained by improving that data structure.
      
      Additionally, the analysis now takes into account that if a RHS stays a
      thunk, then its calls happen only once, even if the variables the RHS is
      bound to is evaluated multiple times, or is part of a recursive group.
      cb8a63cb
  7. 04 Mar, 2014 1 commit
  8. 03 Mar, 2014 1 commit
  9. 01 Mar, 2014 2 commits
  10. 28 Feb, 2014 6 commits
  11. 27 Feb, 2014 3 commits
  12. 26 Feb, 2014 3 commits
    • Herbert Valerio Riedel's avatar
      Follow-up to 32f41c79 · b1ee32ed
      Herbert Valerio Riedel authored
      These parts were forgotten to be committed together with the rest of
      32f41c79
      
      Signed-off-by: Herbert Valerio Riedel's avatarHerbert Valerio Riedel <hvr@gnu.org>
      b1ee32ed
    • Herbert Valerio Riedel's avatar
      Make distribution tarball compression format configurable · 32f41c79
      Herbert Valerio Riedel authored
      
      
      By default, bzip2 compression is selected (which is what has been used
      till now). Additionally, by setting the TAR_COMP make variable to one of
      the values "bzip2", "gzip", or "xz", an explicit compression format can
      be requested for the distribution tarballs. For instance, invoking
      
        make TAR_COMP=xz sdist-ghc
      
      will result in a tarball `./sdistprep/ghc-7.9.20140226-src.tar.xz`
      Signed-off-by: Herbert Valerio Riedel's avatarHerbert Valerio Riedel <hvr@gnu.org>
      32f41c79
    • eir@cis.upenn.edu's avatar
      Fix #8807. · 98b6756b
      eir@cis.upenn.edu authored
      It turns out that the enhanced repPred function in DsMeta assumed
      that the head of any constraint would be a tycon. This assumption
      is false. Happily, the solution involved *deleting* code. I
      just removed repPred in favor of repTy, and added the HsEqTy case
      to repTy, where it should be anyway.
      98b6756b
  13. 25 Feb, 2014 1 commit