#4101: Primitive constant unfolding
---------------------------------+------------------------------------------
    Reporter:  malosh            |        Owner:                         
        Type:  bug               |       Status:  new                    
    Priority:  normal            |    Milestone:                         
   Component:  Compiler          |      Version:  6.12.2                 
    Keywords:                    |   Difficulty:                         
          Os:  Unknown/Multiple  |     Testcase:                         
Architecture:  x86               |      Failure:  Runtime performance bug
---------------------------------+------------------------------------------
Description changed by igloo:

Old description:

> Examining the core generated by ghc with -O2 on a numerical code, I saw
> things like :
>
> case GHC.Prim.<## x_aB9 (GHC.Prim.**## 2.0 -1021.0) of _  {...
>
> This code being executed each time my code performs an addition ! GHC
> does not seem to unfold the constants right with at least **##. By the
> way, it should definitely be possible to specify a Double# constant in
> hexadecimal.

New description:

 Examining the core generated by ghc with -O2 on a numerical code, I saw
 things like :
 {{{
 case GHC.Prim.<## x_aB9 (GHC.Prim.**## 2.0 -1021.0) of _  {...
 }}}
 This code being executed each time my code performs an addition ! GHC does
 not seem to unfold the constants right with at least **##. By the way, it
 should definitely be possible to specify a Double# constant in
 hexadecimal.

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4101#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to