Option<bool>::eq
optimizes poorly
#139078
Labels
I-heavy
Issue: Problems and improvements with respect to binary size of generated code.
llvm-fixed-upstream
Issue expected to be fixed by the next major LLVM upgrade, or backported fixes
S-blocked
Status: Blocked on something else such as an RFC or other implementation work.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Option<bool>::eq
is ~20 lines of assembly as ofrustc 1.87.0-nightly (a2e63569f 2025-03-26)
.Repro: https://rust.godbolt.org/z/hPn8TvvYP
This is here to track this FIXME:
rust/tests/codegen/option-niche-eq.rs
Lines 65 to 73 in 2a06022
With llvm/llvm-project#133344 fixed upstream (thanks @veera-sivarajan for jumping on it so quickly!) after the LLVM 21 version upgrade we should revisit this and see whether we can enable that test.
The text was updated successfully, but these errors were encountered: