[Haskell-cafe] GHC optimisations

Andrew Coppin andrewcoppin at btinternet.com
Sun Aug 19 07:53:07 EDT 2007


Does GHC do stuff like converting (2*) into (shift 1) or converting x + 
x into 2*x?

If I do x * sin 12, is GHC likely to compute sin 12 at compile-time?



More information about the Haskell-Cafe mailing list