Recommend float-specific operations in case of unexpected complex.
Please merge to release.
(cherry picked from commit 7d317f1e96
)
This commit is contained in:
parent
492174f7a1
commit
7a0793e0e5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user