1. 03 Sep, 2007 1 commit
  2. 01 Sep, 2007 1 commit
  3. 29 Aug, 2007 1 commit
  4. 06 Aug, 2007 3 commits
  5. 20 Aug, 2007 1 commit
  6. 14 Aug, 2007 1 commit
    • Ben.Lippmeier@anu.edu.au's avatar
      Add graph coloring register allocator. · 0f7d268d
      Ben.Lippmeier@anu.edu.au authored
      Refactored linear allocator into separate liveness annotation and allocation stages.
      Added graph coloring allocator, use -fregs-graph to enable.
        New dump flags are
          -ddump-asm-native          -- output of cmm -> native transform.
          -ddump-asm-liveness        -- code annotated with register liveness info
          -ddump-asm-coalesce        -- output of register move coalescing
                                          (this is a separate pass when using the coloring allocator)
                                          (this could change in the future)
          -ddump-asm-regalloc        -- code after register allocation
          -ddump-asm-regalloc-stages -- blocks after each build/spill stage of coloring allocator
          -ddump-asm-conflicts       -- a global register liveness graph in graphviz format 
      The new register allocator will allocate some registers, but it's not
      quite ready for prime-time yet. The spill code generator needs some work...
  7. 20 Aug, 2007 2 commits
  8. 17 Aug, 2007 1 commit
    • Ian Lynagh's avatar
      Fix description and type profiling · 3704620a
      Ian Lynagh authored
      Consistently make the type and description in the info table an offset
      or a pointer, depending on whether tables are next to code or not.
  9. 09 Aug, 2007 1 commit
  10. 03 Aug, 2007 2 commits
  11. 31 Jul, 2007 1 commit
    • Clemens Fruhwirth's avatar
      Change the strategy to determine dynamic data access · 81b2276f
      Clemens Fruhwirth authored
      Instead of attaching the information whether a Label is going to be
      accessed dynamically or not (distinction between IdLabel/DynLabel and
      additional flags in ModuleInitLabel and PlainModuleInitLabel), we hand
      dflags through the CmmOpt monad and the NatM monad. Before calling
      labelDynamic in PositionIndependentCode, we extract thisPackage from
      dflags and supply the current package to labelDynamic, so it can take
      this information into account instead of extracting it from the labels
      itself. This simplifies a lot of code in codeGen that just hands
      through this_pkg.
  12. 13 Jul, 2007 2 commits
    • Clemens Fruhwirth's avatar
      Add import facility to cmm parser · d55027c9
      Clemens Fruhwirth authored
      The cmm parser classified all unknown variables as imported. This
      behaviour is not changed with this patch. Explicitly imported
      variables get a different internal label type, namely ForeignLabel
      instead of RtsLabel. In PIC compilation, the NCG creates dynamic
      access for ForeignLabel, while RtsLabel are not treated as PIC when
      -package rts. Hence, putting explicit imports into cmm files enables
      the NCG to distinguish between RTS-external and RTS-internal symbols,
      and create the appropriate code.
    • Clemens Fruhwirth's avatar
      Fix the knot-tying in loopDecls to actually do what its comment tells: provide... · 1e15be89
      Clemens Fruhwirth authored
      Fix the knot-tying in loopDecls to actually do what its comment tells: provide access to global declarations
  13. 27 Jul, 2007 1 commit
    • Simon Marlow's avatar
      Pointer Tagging · 6015a94f
      Simon Marlow authored
      This patch implements pointer tagging as per our ICFP'07 paper "Faster
      laziness using dynamic pointer tagging".  It improves performance by
      10-15% for most workloads, including GHC itself.
      The original patches were by Alexey Rodriguez Yakushev
      <mrchebas@gmail.com>, with additions and improvements by me.  I've
      re-recorded the development as a single patch.
      The basic idea is this: we use the low 2 bits of a pointer to a heap
      object (3 bits on a 64-bit architecture) to encode some information
      about the object pointed to.  For a constructor, we encode the "tag"
      of the constructor (e.g. True vs. False), for a function closure its
      arity.  This enables some decisions to be made without dereferencing
      the pointer, which speeds up some common operations.  In particular it
      enables us to avoid costly indirect jumps in many cases.
      More information in the commentary:
  14. 18 Jul, 2007 2 commits
  15. 17 Jul, 2007 1 commit
  16. 15 Jul, 2007 7 commits
  17. 14 Jul, 2007 1 commit
  18. 05 Jul, 2007 5 commits
  19. 03 Jul, 2007 6 commits