[GHC] #9251: ghc does not expose branchless max/min operations as primops
GHC
ghc-devs at haskell.org
Tue Jan 22 00:31:08 UTC 2019
#9251: ghc does not expose branchless max/min operations as primops
-------------------------------------+-------------------------------------
Reporter: carter | Owner: osa1
Type: task | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
Type of failure: Runtime | Unknown/Multiple
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: #9246 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by AndreasK):
* cc: AndreasK (added)
Comment:
For cases where branch prediction is impossible this makes quite the
difference in my experience.
I have some proof of concept code for Int/Word already. I plan to keep the
branch [here](https://github.com/AndreasPK/ghc/tree/minmax) updated until
I got a patch ready.
If someone feels like taking this over contact me, otherwise I will
probably put up a patch for the Int/Word in a month or two depending on
how time I can spend on this.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9251#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list