-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Miscompile with -Copt-level=1
after update to LLVM 17
#115681
Comments
-Copt-level=1
on nightly
-Copt-level=1
on nightly-Copt-level=1
after update to LLVM 17
I have bisected the LLVM pass to the |
The optimization transforms this switch lookup which appears to correspond to the
with only the calculation of
to:
with the rest of the IR remaining unchanged. The transform of |
The IR output from rustc without any optimization passes outputs is:
Which appears correct to me. This suggests that the |
Looks like this Before
Which is correct. So the real errant pass is |
Looks like this issue is known and a fix is in progress upstream at llvm/llvm-project#65882. |
Update to LLVM 17.0.0 This rebases our LLVM fork to 17.0.0. Fixes rust-lang#115681.
Update to LLVM 17.0.0 This rebases our LLVM fork to 17.0.0. Fixes rust-lang#115681.
Update to LLVM 17.0.0 This rebases our LLVM fork to 17.0.0. Fixes rust-lang#115681.
This rebases our LLVM fork to 17.0.0. Fixes rust-lang#115681. (cherry picked from commit 531830c)
This rebases our LLVM fork to 17.0.0. Fixes rust-lang#115681. (cherry picked from commit 531830c)
This rebases our LLVM fork to 17.0.0. Fixes rust-lang#115681. (cherry picked from commit 531830c)
Minimized from code in the Fuchsia tree:
This issue was introduced in the
nightly-2023-08-09
build, and so it is likely to be a result of the upgrade to LLVM 17 (#114048).The text was updated successfully, but these errors were encountered: