about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2024-05-04 16:21:50 +0200
committerMartin Nordholts <martin.nordholts@codetale.se>2024-06-14 20:25:17 +0200
commitf5f067bf9d8de86f3a546a33d8a2e08dfa64cde1 (patch)
tree9c7c9f66f146b8311ef5e2d6fe7bed62104f77e8 /src
parent651ff643ae68438213bded335ef47cc9c50d3039 (diff)
downloadrust-f5f067bf9d8de86f3a546a33d8a2e08dfa64cde1.tar.gz
rust-f5f067bf9d8de86f3a546a33d8a2e08dfa64cde1.zip
Deprecate no-op codegen option `-Cinline-threshold=...`
This deprecates `-Cinline-threshold` since using it has no effect. This
has been the case since the new LLVM pass manager started being used,
more than 2 years ago.
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc/src/codegen-options/index.md17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md
index babe2bc342b..cd10168bc1c 100644
--- a/src/doc/rustc/src/codegen-options/index.md
+++ b/src/doc/rustc/src/codegen-options/index.md
@@ -184,20 +184,9 @@ incremental files will be stored.
 
 ## inline-threshold
 
-This option lets you set the default threshold for inlining a function. It
-takes an unsigned integer as a value. Inlining is based on a cost model, where
-a higher threshold will allow more inlining.
-
-The default depends on the [opt-level](#opt-level):
-
-| opt-level | Threshold |
-|-----------|-----------|
-| 0         | N/A, only inlines always-inline functions |
-| 1         | N/A, only inlines always-inline functions and LLVM lifetime intrinsics |
-| 2         | 225 |
-| 3         | 275 |
-| s         | 75 |
-| z         | 25 |
+This option is deprecated and does nothing.
+
+Consider using `-Cllvm-args=--inline-threshold=...`.
 
 ## instrument-coverage