Recommend float-specific operations in case of unexpected complex.

Please merge to release.
This commit is contained in:
Vincent St-Amour 2012-09-24 18:49:10 -04:00
parent 40ca07ee7c
commit 7d317f1e96

View File

@ -449,7 +449,13 @@
(subtypeof? subexpr -Real)))
(log-missed-optimization
"unexpected complex type"
"This expression has a Complex type, despite all its arguments being reals. If you do not want or expect complex numbers as results, you may want to restrict the type of the arguments, which may have a beneficial impact on performance."
(string-append
"This expression has a Complex type, despite all its "
"arguments being reals. If you do not want or expect "
"complex numbers as results, you may want to restrict "
"the type of the arguments or use float-specific "
"operations (e.g. flsqrt), which may have a beneficial "
"impact on performance.")
this-syntax))
;; We don't actually want to match.
#:when #f