You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not too familiar LLVM. I was investigating this rustc issue rust-lang/rust#82801 and I realized that in the following Rust code, the last (x >= y) check is not optimized away:
Hi!
I'm not too familiar LLVM. I was investigating this rustc issue rust-lang/rust#82801 and I realized that in the following Rust code, the last (x >= y) check is not optimized away:
I wrote what I believe is an equivalent C code, using the fact that overflow is UB on signed integers
but using clang trunk I get
whereas GCC properly removes the last comparison
edit:
Weirdly enough, the code below is well optimized by clang 17 but not by goldbot's clang trunk version, so there is a possible regression.
The text was updated successfully, but these errors were encountered: