[GHC] #10062: Codegen on sequential FFI calls is not very good

GHC ghc-devs at haskell.org
Tue Feb 3 11:42:40 UTC 2015


#10062: Codegen on sequential FFI calls is not very good
-------------------------------------+-------------------------------------
        Reporter:  chadaustin        |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.8.3
  (CodeGen)                          |                Keywords:
      Resolution:                    |            Architecture:
Operating System:  Unknown/Multiple  |  Unknown/Multiple
 Type of failure:  Runtime           |               Test Case:
  performance bug                    |                Blocking:
      Blocked By:                    |  Differential Revisions:
 Related Tickets:                    |
-------------------------------------+-------------------------------------

Comment (by svenpanne):

 A quick remark regarding "xorq %rax,%rax" vs. "movb $0,%al": I would
 recommend the xorq variant, we had very bad experiences with data
 dependencies between partially written registers in the v8 JavaScript JIT.
 Intel CPUs have funny performance characteristics, and these vary vastly
 between architectures and even releases of the same architecture. :-/ No
 need to repeat the pain in GHC...

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


More information about the ghc-tickets mailing list