From 2b662217e745d88d93dcc6f5f5169bf7a0d9720e Mon Sep 17 00:00:00 2001 From: Erik Desjardins Date: Wed, 29 Dec 2021 15:28:31 -0500 Subject: Mark drop calls in landing pads cold instead of noinline Now that deferred inlining has been disabled in LLVM, this shouldn't cause catastrophic size blowup. --- compiler/rustc_codegen_llvm/src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_codegen_llvm/src') diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 8c3054b23ff..107300ed304 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -1201,8 +1201,8 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { unsafe { llvm::LLVMBuildZExt(self.llbuilder, val, dest_ty, UNNAMED) } } - fn do_not_inline(&mut self, llret: &'ll Value) { - llvm::Attribute::NoInline.apply_callsite(llvm::AttributePlace::Function, llret); + fn mark_callsite_cold(&mut self, llret: &'ll Value) { + llvm::Attribute::Cold.apply_callsite(llvm::AttributePlace::Function, llret); } } -- cgit 1.4.1-3-g733a5