Ticket #4101 (new bug)
Primitive constant unfolding
| Reported by: | malosh | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 7.6.2 |
| Component: | Compiler | Version: | 6.12.2 |
| Keywords: | Cc: | alexey.skladnoy@…, bjornbm, anton.nik@…, carter.schonwald@… | |
| Operating System: | Unknown/Multiple | Architecture: | x86 |
| Type of failure: | Runtime performance bug | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
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.
Change History
Note: See
TracTickets for help on using
tickets.
