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
{{ message }}
Repository navigation
Target feature implications for negative features are handled inconsistently between codegen and cfg(target_feature) #134792
The logic that computes cfg(target_feature) takes into account target feature implications when handling something like -sse: it will also remove avx from the list of enabled target features in that case. However, the logic that computes which flags we set for codegen (which, unfortunately, is completely separate), does not do the same: it will add -sse to LLVM's target feature list, but does not do anything about Rust-level target feature implications.
This can't be correct -- either negative target features also imply that their "reverse dependencies" get disabled, or they do not. We shouldn't do one thing in codegen and a different thing for cfg. Or is there some good reason for this?
If I understand this issue description correctly (95% sure, will have to review the actual code to be ~99.9%) then no, there is no particularly good reason for this difference and we should do the exact same thing.
Activity
workingjubilee commentedon Dec 27, 2024
If I understand this issue description correctly (95% sure, will have to review the actual code to be ~99.9%) then no, there is no particularly good reason for this difference and we should do the exact same thing.
Rollup merge of rust-lang#140920 - RalfJung:target-feature-unificatio…
Rollup merge of rust-lang#140920 - RalfJung:target-feature-unificatio…
Unrolled build for #140920