-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Bounds check elision fails when using cmp::max #113757
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
Godbolt: https://rust.godbolt.org/z/bhb1zW9o6 |
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 |
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
arichardson
pushed a commit
to CTSRD-CHERI/llvm-project
that referenced
this issue
Jan 28, 2025
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
# for free
to join this conversation on GitHub.
Already have an account?
# 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.
Uh oh!
There was an error while loading. Please reload this page.
I tried this code:
Generates:
But
generates super clean assembly:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: