[GHC] #9374: Investigate Static Argument Transformation

GHC ghc-devs at haskell.org
Wed Sep 20 16:09:48 UTC 2017


#9374: Investigate Static Argument Transformation
-------------------------------------+-------------------------------------
        Reporter:  jstolarek         |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  7.9
      Resolution:                    |             Keywords:
                                     |  StaticArgumentTransformation
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by mpickering):

 Here are the results of running nofib with and without `-fstatic-argument-
 transformation`.

 {{{
 --------------------------------------------------------------------------------
         Program           Size    Allocs   Runtime   Elapsed  TotalMem
 --------------------------------------------------------------------------------
              CS           0.0%      0.0%     0.181     0.180      0.0%
             CSD          -0.6%   -100.0%    -98.0%    -98.0%      0.0%
              FS           0.0%      0.0%     -7.5%     -7.5%      0.0%
               S           0.0%      0.0%     -0.1%     -0.1%      0.0%
              VS           0.0%      0.0%     -0.1%     -0.1%      0.0%
             VSD           0.0%      0.0%     0.008     0.008      0.0%
             VSM           0.0%      0.0%    -10.9%    -10.9%      0.0%
            anna          -0.4%     +1.4%     0.059     0.059      0.0%
            ansi           0.0%      0.0%     0.000     0.000      0.0%
            atom          +0.2%    -98.6%     0.003     0.003    -33.3%
          awards           0.0%      0.0%     0.000     0.000      0.0%
          banner           0.0%      0.0%     0.000     0.000      0.0%
      bernouilli          -0.0%      0.0%     0.093     0.093      0.0%
    binary-trees           0.0%      0.0%     -1.6%     -1.6%      0.0%
           boyer           0.0%      0.0%     0.023     0.023      0.0%
          boyer2           0.0%      0.0%     0.004     0.004      0.0%
            bspt          +1.0%     -0.4%     0.004     0.004      0.0%
       cacheprof           0.0%     -0.1%     -0.9%     -0.9%     -0.9%
        calendar           0.0%      0.0%     0.000     0.000      0.0%
        cichelli          +0.4%     -8.3%     0.037     0.037      0.0%
         circsim          +0.0%      0.0%     +1.3%     +1.3%      0.0%
        clausify          +0.0%      0.0%     0.020     0.020      0.0%
   comp_lab_zift          +0.9%     +0.1%     0.102     0.102      0.0%
        compress          -0.0%     -0.1%     0.075     0.075      0.0%
       compress2           0.0%      0.0%     0.086     0.086      0.0%
     constraints           0.0%      0.0%     +0.3%     +0.3%      0.0%
    cryptarithm1           0.0%      0.0%     +8.3%     +8.2%      0.0%
    cryptarithm2           0.0%      0.0%     0.004     0.004      0.0%
             cse          -0.0%      0.0%     0.001     0.001      0.0%
    digits-of-e1           0.0%      0.0%     +5.2%     +5.2%      0.0%
    digits-of-e2           0.0%      0.0%     +5.7%     +5.7%      0.0%
           eliza           0.0%      0.0%     0.000     0.000      0.0%
           event          +0.0%     +1.2%     0.085     0.085     +9.5%
     exact-reals           0.0%      0.0%     +1.2%     +1.2%      0.0%
          exp3_8           0.0%      0.0%     0.129     0.130      0.0%
          expert          -0.0%     +0.0%     0.000     0.000      0.0%
  fannkuch-redux           0.0%      0.0%     -1.2%     -1.2%      0.0%
           fasta           0.0%      0.0%     +2.0%     +2.1%      0.0%
             fem           0.0%      0.0%     0.013     0.013      0.0%
             fft          +0.0%     -1.0%     0.018     0.018      0.0%
            fft2           0.0%      0.0%     0.026     0.026      0.0%
        fibheaps          -0.0%     +5.9%     0.014     0.014      0.0%
            fish           0.0%      0.0%     0.006     0.006      0.0%
           fluid           0.0%      0.0%     0.004     0.004      0.0%
          fulsom           0.0%      0.0%     0.161     0.161      0.0%
          gamteb           0.0%      0.0%     0.025     0.025      0.0%
             gcd           0.0%      0.0%     0.024     0.024      0.0%
     gen_regexps           0.0%      0.0%     0.000     0.000      0.0%
          genfft          -0.0%     -2.6%     0.017     0.017      0.0%
              gg          +0.0%     -1.8%     0.005     0.005      0.0%
            grep           0.0%      0.0%     0.000     0.000      0.0%
          hidden          +0.0%      0.0%     -4.9%     -5.0%      0.0%
             hpg          +0.0%     -0.0%     0.049     0.049      0.0%
             ida          +0.7%     +0.1%     0.046     0.046      0.0%
           infer          -0.0%     +0.0%     0.029     0.029      0.0%
         integer           0.0%      0.0%     -4.5%     -4.5%      0.0%
       integrate           0.0%      0.0%     0.079     0.079      0.0%
    k-nucleotide           0.0%      0.0%     +0.7%     +0.7%      0.0%
           kahan           0.0%      0.0%     0.195     0.195      0.0%
         knights          +0.0%     -0.2%     0.002     0.002      0.0%
          lambda           0.0%      0.0%      0.0%     -0.0%      0.0%
      last-piece          -0.2%     +4.6%     +3.2%     +3.2%      0.0%
            lcss           0.0%      0.0%     -0.6%     -0.6%      0.0%
            life           0.0%      0.0%     0.149     0.149      0.0%
            lift           0.0%      0.0%     0.001     0.001      0.0%
          linear           0.0%      0.0%     +0.1%     +0.1%      0.0%
       listcompr          +0.0%     -0.4%     0.055     0.055      0.0%
        listcopy          +0.0%     -0.4%     0.059     0.059      0.0%
        maillist           0.0%      0.0%     0.032     0.033     -2.3%
          mandel          -0.1%      0.0%     0.040     0.040      0.0%
         mandel2          +0.1%      0.0%     0.002     0.002      0.0%
            mate          +0.2%     -5.5%     -4.6%     -4.6%      0.0%
         minimax           0.0%      0.0%     0.001     0.001      0.0%
         mkhprog           0.0%      0.0%     0.001     0.001      0.0%
      multiplier          +0.9%     +0.7%     0.054     0.054      0.0%
          n-body           0.0%      0.0%     -0.5%     -0.5%      0.0%
        nucleic2           0.0%      0.0%     0.045     0.045      0.0%
            para          +0.7%     -0.5%     0.162     0.162      0.0%
       paraffins           0.0%      0.0%     0.064     0.064      0.0%
          parser           0.0%      0.0%     0.015     0.015      0.0%
         parstof          +1.0%     +4.0%     0.004     0.004      0.0%
             pic          +0.0%      0.0%     0.004     0.004      0.0%
        pidigits           0.0%      0.0%     -0.1%     -0.3%      0.0%
           power          +0.7%     +1.5%     0.210     0.210     +9.1%
          pretty           0.0%      0.0%     0.000     0.000      0.0%
          primes           0.0%      0.0%     0.039     0.039      0.0%
       primetest           0.0%      0.0%     0.060     0.060      0.0%
          prolog          +0.1%     +0.0%     0.001     0.001      0.0%
          puzzle           0.0%      0.0%     0.073     0.073      0.0%
          queens           0.0%      0.0%     0.007     0.007      0.0%
         reptile          +0.3%     +0.0%     0.006     0.006      0.0%
 reverse-complem           0.0%      0.0%     0.061     0.061      0.0%
         rewrite          -0.1%     -1.8%     0.010     0.010      0.0%
            rfib           0.0%      0.0%     0.009     0.009      0.0%
             rsa          +0.1%     +0.0%     0.014     0.014      0.0%
             scc          +0.0%     +0.2%     0.000     0.000      0.0%
           sched           0.0%      0.0%     0.012     0.012      0.0%
             scs           0.0%      0.0%     -0.1%     -0.1%      0.0%
          simple           0.0%      0.0%     0.119     0.119      0.0%
           solid          +0.6%    -14.8%     0.065     0.065      0.0%
         sorting          -0.1%      0.0%     0.001     0.001      0.0%
   spectral-norm           0.0%      0.0%     +0.9%     +0.9%      0.0%
          sphere           0.0%      0.0%     0.027     0.027      0.0%
          symalg          +0.0%     -0.8%     0.005     0.005      0.0%
             tak           0.0%      0.0%     0.007     0.007      0.0%
       transform          -0.1%     -0.4%     0.190     0.190      0.0%
        treejoin          +0.0%     +2.3%     0.094     0.094     -3.6%
       typecheck          +0.5%     -1.9%     0.151     0.151      0.0%
         veritas          -1.3%     -0.0%     0.001     0.001      0.0%
            wang          +0.1%     -1.1%     0.055     0.055     -5.3%
       wave4main          -0.0%     -0.0%     0.156     0.156      0.0%
    wheel-sieve1           0.0%      0.0%    +10.1%    +10.0%      0.0%
    wheel-sieve2           0.0%      0.0%     0.135     0.135      0.0%
            x2n1           0.0%      0.0%     0.003     0.003      0.0%
 --------------------------------------------------------------------------------
             Min          -1.3%    -95.0%    -95.0%    -95.0%    -33.3%
             Max          +1.0%     +5.9%    +10.1%    +10.0%     +9.5%
  Geometric Mean          +0.1%     -5.3%    -10.2%    -10.2%     -0.3%



 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9374#comment:20>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list