Skip to content

Commit

Permalink
Mark the inline-threshold option as deprecated and non-functional
Browse files Browse the repository at this point in the history
See rust-lang#124712 for details.
  • Loading branch information
jannic committed Jul 26, 2024
1 parent ce5e155 commit 845540a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/doc/rustc/src/codegen-options/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,7 @@ 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.

## instrument-coverage

Expand Down

0 comments on commit 845540a

Please sign in to comment.