summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Stolarek <jan.stolarek@p.lodz.pl>2013-08-12 09:41:58 +0100
committerJan Stolarek <jan.stolarek@p.lodz.pl>2013-08-12 09:41:58 +0100
commitc24ce5a18350265f94834299578bf5fe68dbf01a (patch)
treef289d919da4f735a561f05ae3a912259ce0fa867
parent789acb2643bcc730e689f23d7f937e0e3cc12632 (diff)
downloadhaskell-c24ce5a18350265f94834299578bf5fe68dbf01a.tar.gz
Comments only
-rw-r--r--compiler/prelude/PrelRules.lhs12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/prelude/PrelRules.lhs b/compiler/prelude/PrelRules.lhs
index 6faecaaef9..96e39fe641 100644
--- a/compiler/prelude/PrelRules.lhs
+++ b/compiler/prelude/PrelRules.lhs
@@ -672,12 +672,12 @@ strengthReduction two_lit add_op = do -- Note [Strength reduction]
return arg ]
return $ Var (mkPrimOpId add_op) `App` arg `App` arg
-{- Note [Strength reduction]
-
-This rule turns multiplications of the form 2 * x and x * 2 into x + x addition
-because addition costs less than multiplication. See #7116
-
--}
+-- Note [Strength reduction]
+-- ~~~~~~~~~~~~~~~~~~~~~~~~~
+--
+-- This rule turns floating point multiplications of the form 2.0 * x and
+-- x * 2.0 into x + x addition, because addition costs less than multiplication.
+-- See #7116
trueVal, falseVal :: Expr CoreBndr
trueVal = Var trueDataConId