diff options
| author | Mingye Wang <arthur200126@gmail.com> | 2020-09-17 17:39:26 +0800 |
|---|---|---|
| committer | Mingye Wang <arthur2e5@aosc.io> | 2020-10-05 07:50:44 +0800 |
| commit | a35a93f09cc111a53d00efc567ad678583dd5ac7 (patch) | |
| tree | 943360a4a63ea2f050f5e53e691afb5c8a11d2bc /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | 285fc7d704fcdd7b2a37d475d04d5d955490e000 (diff) | |
| download | rust-a35a93f09cc111a53d00efc567ad678583dd5ac7.tar.gz rust-a35a93f09cc111a53d00efc567ad678583dd5ac7.zip | |
Pass tune-cpu to LLVM
I think this is how it should work...
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 1c51a9df5d8..6e6b2cacc03 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -417,7 +417,8 @@ impl MiscMethods<'tcx> for CodegenCx<'ll, 'tcx> { } fn apply_target_cpu_attr(&self, llfn: &'ll Value) { - attributes::apply_target_cpu_attr(self, llfn) + attributes::apply_target_cpu_attr(self, llfn); + attributes::apply_tune_cpu_attr(self, llfn); } fn create_used_variable(&self) { |
