#7460: Double literals generated bad core ---------------------------------+------------------------------------------ Reporter: tibbe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: Runtime performance bug Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------
Comment(by tibbe): Replying to [comment:2 tibbe]: > Changing the use of `fromIntegral` to > > {{{ > word2Double x = D# (int2Double# (word2Int# x)) > }}} > > works around the issue in my case. Except that it doesn't always generate the correct value. The point remains though, we need an efficient `word2Double` conversion to be inserted into the core. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7460#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs