-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
17 Regression: over optimization at -O2 #123347
Labels
Comments
@llvm/issue-subscribers-coroutines Author: None (NewSigma)
godbolt: https://godbolt.org/z/4xEEz6fsY
The code works fine using clang 16, but it breaks using 17 ~ trunk. Possible wrong result(-O2): Expected result(-O0): |
Only occurs at -O2:
Looks like gcc doesn't have this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
godbolt: https://godbolt.org/z/4xEEz6fsY
The code works fine using clang 16, but it breaks using 17 ~ trunk.
Possible wrong result(-O2):
main: 0x61c7ada362f0
~Promise: 0x61c7ada362f0
Expected result(-O0):
main: 0x61c7ada362f0
~Promise: 0
The text was updated successfully, but these errors were encountered: