Re: Branchless implementation for literal case – is it worth it?

2015-04-19 Thread Johan Tibell
On Apr 19, 2015 09:44, Joachim Breitner m...@joachim-breitner.de wrote: Dear devs, in https://ghc.haskell.org/trac/ghc/ticket/10124 bgamari suggested that code like f :: Int - Bool f a = case a of 1 - True 5 - True 8 -

Branchless implementation for literal case – is it worth it?

2015-04-19 Thread Joachim Breitner
Dear devs, in https://ghc.haskell.org/trac/ghc/ticket/10124 bgamari suggested that code like f :: Int - Bool f a = case a of 1 - True 5 - True 8 - True 9 - True 11 - True

Re: Branchless implementation for literal case – is it worth it?

2015-04-19 Thread Ben Gamari
Joachim Breitner m...@joachim-breitner.de writes: Dear devs, in https://ghc.haskell.org/trac/ghc/ticket/10124 bgamari suggested that code like f :: Int - Bool f a = case a of 1 - True 5 - True 8 - True

Re: Branchless implementation for literal case – is it worth it?

2015-04-19 Thread Carter Schonwald
the optimization manual ben mentions is http://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-optimization-manual.html it does a very good job laying out the scope of both *generality* and *impact* for a huge range of systemsy tricks. there are certain

Re: Branchless implementation for literal case – is it worth it?

2015-04-19 Thread Gabor Greif
Em domingo, 19 de abril de 2015, Joachim Breitner m...@joachim-breitner.de escreveu: Dear devs, in https://ghc.haskell.org/trac/ghc/ticket/10124 bgamari suggested that code like f :: Int - Bool f a = case a of 1 - True 5 - True