#1890: Regression in mandelbrot benchmark due to inlining
-----------------------------------+----------------------------------------
Reporter: dons | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8.3
Component: Compiler | Version: 6.8.1
Severity: normal | Resolution:
Keywords: inlining, performance | Difficulty: Unknown
Testcase: | Architecture: x86_64 (amd64)
Os: Unknown |
-----------------------------------+----------------------------------------
Comment (by simonpj):
I had a quick go at reproducing this. I added
{{{
{-# OPTIONS -fexcess-precision -O -fglasgow-exts -fbang-patterns
-funbox-strict-fields -optc-O2 -optc-mfpmath=sse -optc-msse2
#-}
module Main where
}}}
to the file. (The `module` line unnecessarily exports everything but it
makes it easier to compare, and I got the same results with `module
Main(main)`.
In OPTIONS I omitted `-optc-march=pentium4` because I got
{{{
/tmp/ghc27259_0/ghc27259_0.hc:1:0:
error: CPU you selected does not support x86-64 instruction set
}}}
This is on a 64-bit machine, though.
With that setup I got slightly faster execution with 6.8 and virtually
identical code for `unfold`. So I'm puzzled.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1890#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs