On Wed, Aug 20, 2014 at 11:05 AM, Johan Holmquist <holmisen@gmail.com> wrote:
Could you explain when it's not?> I think the reason it isn't done is that it's not always an optimization
A simple example is when the two values aren't equal, as you'll be doing one more branch than you otherwise would.
The extra branch might also hurt the branch predictor even in the equal case, if the branch is hard to predict.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe