-
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
Bounds check elision fails when using cmp::max #113757
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
Comments
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Jul 16, 2023
Godbolt: https://rust.godbolt.org/z/bhb1zW9o6 |
nikic
added
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
C-bug
Category: This is a bug.
labels
Jul 16, 2023
dtcxzyw
added a commit
to llvm/llvm-project
that referenced
this issue
Jul 24, 2023
Fixes #63896 and rust-lang/rust#113757. This patch adds facts implied by llvm.smin/smax/umin/umax intrinsics. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D155412
It should be fixed by llvm/llvm-project@92a11eb. |
Fixed in beta/1.77: https://rust.godbolt.org/z/o618xE6fh The LLVM 18 upgrade is in 1.78, so I'm not sure why. @rustbot label +E-needs-test |
rustbot
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
Mar 5, 2024
tesuji
added a commit
to tesuji/rustc
that referenced
this issue
May 20, 2024
tesuji
added a commit
to tesuji/rustc
that referenced
this issue
Jun 8, 2024
tesuji
added a commit
to tesuji/rustc
that referenced
this issue
Jun 9, 2024
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 9, 2024
Add codegen tests for E-needs-test close rust-lang#36010 close rust-lang#68667 close rust-lang#74938 close rust-lang#83585 close rust-lang#93036 close rust-lang#109328 close rust-lang#110797 close rust-lang#111508 close rust-lang#112509 close rust-lang#113757 close rust-lang#120440 close rust-lang#118392 close rust-lang#71096 r? nikic
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 10, 2024
Add codegen tests for E-needs-test close rust-lang#36010 close rust-lang#68667 close rust-lang#74938 close rust-lang#83585 close rust-lang#93036 close rust-lang#109328 close rust-lang#110797 close rust-lang#111508 close rust-lang#112509 close rust-lang#113757 close rust-lang#120440 close rust-lang#118392 close rust-lang#71096 r? nikic
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 11, 2024
Add codegen tests for E-needs-test close rust-lang#36010 close rust-lang#68667 close rust-lang#74938 close rust-lang#83585 close rust-lang#93036 close rust-lang#109328 close rust-lang#110797 close rust-lang#111508 close rust-lang#112509 close rust-lang#113757 close rust-lang#120440 close rust-lang#118392 close rust-lang#71096 r? nikic
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 13, 2024
Add codegen tests for E-needs-test close rust-lang#36010 close rust-lang#68667 close rust-lang#74938 close rust-lang#83585 close rust-lang#93036 close rust-lang#109328 close rust-lang#110797 close rust-lang#111508 close rust-lang#112509 close rust-lang#113757 close rust-lang#120440 close rust-lang#118392 close rust-lang#71096 r? nikic
veselypeta
pushed a commit
to veselypeta/cherillvm
that referenced
this issue
Sep 7, 2024
Fixes llvm/llvm-project#63896 and rust-lang/rust#113757. This patch adds facts implied by llvm.smin/smax/umin/umax intrinsics. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D155412
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
I tried this code:
Generates:
But
generates super clean assembly:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: