diff options
| author | bors <bors@rust-lang.org> | 2020-10-13 02:49:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-13 02:49:00 +0000 |
| commit | f54072bb815e2bbaec40eed18c7618904a184470 (patch) | |
| tree | c8ef9069de929a2e7c2fd3a93363890bf5739cc6 /compiler/rustc_codegen_llvm/src/lib.rs | |
| parent | afb4514c099fde6e3102373602bea9e6dacd4f88 (diff) | |
| parent | a35a93f09cc111a53d00efc567ad678583dd5ac7 (diff) | |
| download | rust-f54072bb815e2bbaec40eed18c7618904a184470.tar.gz rust-f54072bb815e2bbaec40eed18c7618904a184470.zip | |
Auto merge of #76830 - Artoria2e5:tune, r=nagisa
Pass tune-cpu to LLVM I think this is how it should work... See https://internals.rust-lang.org/t/expose-tune-cpu-from-llvm/13088 for the background. Or the documentation diff.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs index 1237b39b300..b5f83118d0c 100644 --- a/compiler/rustc_codegen_llvm/src/lib.rs +++ b/compiler/rustc_codegen_llvm/src/lib.rs @@ -116,6 +116,9 @@ impl ExtraBackendMethods for LlvmCodegenBackend { fn target_cpu<'b>(&self, sess: &'b Session) -> &'b str { llvm_util::target_cpu(sess) } + fn tune_cpu<'b>(&self, sess: &'b Session) -> Option<&'b str> { + llvm_util::tune_cpu(sess) + } } impl WriteBackendMethods for LlvmCodegenBackend { |
