Skip to content

Commit 2f491bc

Browse files
committed
Use a negative inline cost for #[inline(usually)]
1 parent 538d56a commit 2f491bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_codegen_llvm/src/attributes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn inline_attr<'ll>(cx: &CodegenCx<'ll, '_>, inline: InlineAttr) -> Option<&'ll
4848
}
4949
InlineAttr::None => None,
5050
InlineAttr::Usually => {
51-
Some(llvm::CreateAttrStringValue(cx.llcx, "function-inline-cost", "0"))
51+
Some(llvm::CreateAttrStringValue(cx.llcx, "function-inline-cost", "-1000"))
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)