[GHC] #10750: silly assembly for comparing Doubles
GHC
ghc-devs at haskell.org
Sun Aug 9 03:11:00 UTC 2015
#10750: silly assembly for comparing Doubles
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
(CodeGen) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Runtime | Unknown/Multiple
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: #10137, #10677 | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Replying to [comment:2 nomeata]:
> Anyways, with #10677 resp. D1137, the conditions should be `condition !=
0`, which will hopefully be turned into `condition`.
Yes, I believe that case is handled already.
Here is an example (build with `-O`):
{{{
f :: Double -> Double
f x = if x > 0 then 1 else 2
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10750#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list