Skip to content

Commit 27e7311

Browse files
committed
Remove blindly adding callsite inlining
1 parent 69d5f24 commit 27e7311

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

compiler/rustc_codegen_llvm/src/builder.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,21 +1503,6 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
15031503
)
15041504
};
15051505

1506-
if let Some(callee_instance) = callee_instance {
1507-
// Attributes on the function definition being called
1508-
let callee_attrs = self.cx.tcx.codegen_fn_attrs(callee_instance.def_id());
1509-
1510-
if let Some(inlining_rule) =
1511-
attributes::inline_attr(&self.cx, self.cx.tcx, callee_instance, callee_attrs)
1512-
{
1513-
attributes::apply_to_callsite(
1514-
call,
1515-
llvm::AttributePlace::Function,
1516-
&[inlining_rule],
1517-
);
1518-
}
1519-
}
1520-
15211506
if let Some(fn_abi) = fn_abi {
15221507
fn_abi.apply_attrs_callsite(self, call);
15231508
}

0 commit comments

Comments
 (0)