1
Fork 0
rust/compiler/rustc_codegen_ssa
Nicholas Nethercote 936a8232df Change signature of target_features_cfg.
Currently it is called twice, once with `allow_unstable` set to true and
once with it set to false. This results in some duplicated work. Most
notably, for the LLVM backend, `LLVMRustHasFeature` is called twice for
every feature, and it's moderately slow. For very short running
compilations on platforms with many features (e.g. a `check` build of
hello-world on x86) this is a significant fraction of runtime.

This commit changes `target_features_cfg` so it is only called once, and
it now returns a pair of feature sets. This halves the number of
`LLVMRustHasFeature` calls.
2025-03-05 09:49:17 +11:00
..
src Change signature of target_features_cfg. 2025-03-05 09:49:17 +11:00
Cargo.toml compiler: bump cc to 1.2.16 to fix x86 Windows jobs on newest Windows SDK 2025-02-28 21:10:21 +08:00
messages.ftl improve error message and testing of using an unsigned simd mask 2025-03-01 12:58:22 +01:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.