-
Notifications
You must be signed in to change notification settings - Fork 13.4k
floating-point operations have side effects #6422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
*** Bug llvm/llvm-bugzilla-archive#6393 has been marked as a duplicate of this bug. *** |
*** Bug llvm/llvm-bugzilla-archive#11904 has been marked as a duplicate of this bug. *** |
*** Bug llvm/llvm-bugzilla-archive#23522 has been marked as a duplicate of this bug. *** |
*** Bug llvm/llvm-bugzilla-archive#23707 has been marked as a duplicate of this bug. *** |
*** Bug llvm/llvm-bugzilla-archive#24343 has been marked as a duplicate of this bug. *** |
mentioned in issue llvm/llvm-bugzilla-archive#6393 |
Pass argument by reference to a void a use-after-free.
Extended Description
Floating-point instructions, such as add, sub, mul, and div, as well as math library functions in -fno-math-errno mode, are considered to have no side effects in LLVM. This is incorrect; they may set floating-point exception flags, and they may trap if the processor is configured to trap on floating-point exceptions.
As a consequence of this, these side effects may be reordered or eliminated by the optimizer and codegen.
The text was updated successfully, but these errors were encountered: