[GHC] #6121: Very poor constant folding
GHC
cvs-ghc at haskell.org
Fri Jun 8 11:10:45 CEST 2012
#6121: Very poor constant folding
---------------------------------+------------------------------------------
Reporter: augustss | Owner: igloo
Type: bug | Status: new
Priority: high | Milestone: 7.6.1
Component: Compiler | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: Runtime performance bug
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by simonmar):
* owner: => igloo
* priority: normal => high
* milestone: => 7.6.1
Comment:
It looks like we should have constant folding for:
{{{
encodeFloatInteger :: Integer -> Int# -> Float#
encodeDoubleInteger :: Integer -> Int# -> Double#
decodeDoubleInteger :: Double# -> (# Integer, Int# #)
doubleFromInteger :: Integer -> Double#
floatFromInteger :: Integer -> Float#
}}}
which should be easy enough with the new Integer literals. Ian, could you
look into that?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6121#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list