From a35a93f09cc111a53d00efc567ad678583dd5ac7 Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Thu, 17 Sep 2020 17:39:26 +0800 Subject: Pass tune-cpu to LLVM I think this is how it should work... --- compiler/rustc_codegen_llvm/src/context.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/rustc_codegen_llvm/src/context.rs') 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) { -- cgit 1.4.1-3-g733a5