diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-04-06 09:29:19 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-04-19 20:05:23 +1000 |
| commit | 3e3fd73f85c8dd2a7ba6b2072bfb1158e7e6872f (patch) | |
| tree | 614b88e0bc6f933e105e27cf009df2f3635f13fe /src/doc | |
| parent | dc0653987215293d239bfc9fd6623a4b1d6fbc36 (diff) | |
Disallow values for `-C no-*` and `-Z no-*` options again.
With the exception of `-C no-redzone`, because that could take a value
before this PR.
This partially undoes one of the earlier commits in this PR, which added
the ability to take a value to all boolean options that lacked it.
The help output for these options looks like this:
```
-C no-vectorize-slp=val -- disable LLVM's SLP vectorization pass
```
The "=val" part is a lie, but hopefully this will be fixed in the future.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustc/src/codegen-options/index.md | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md index 22cdc9f2339..5dda5ec2cb8 100644 --- a/src/doc/rustc/src/codegen-options/index.md +++ b/src/doc/rustc/src/codegen-options/index.md @@ -180,30 +180,19 @@ If not specified, overflow checks are enabled if ## no-prepopulate-passes -This flag controls whether the pass manager uses a pre-populated list of -passes. It takes one of the following values: - -* `y`, `yes`, `on`, or no value: use an empty list of passes. -* `n`, `no`, or `off`: use a pre-populated list of passes (the default). +This flag tells the pass manager to use an empty list of passes, instead of the +usual pre-populated list of passes. ## no-vectorize-loops -This flag controls whether `rustc` will attempt to [vectorize -loops](https://llvm.org/docs/Vectorizers.html#the-loop-vectorizer). It takes -one of the following values: - -* `y`, `yes`, `on`, or no value: disable loop vectorization. -* `n`, `no`, or `off`: enable loop vectorization (the default). +This flag disables [loop +vectorization](https://llvm.org/docs/Vectorizers.html#the-loop-vectorizer). ## no-vectorize-slp -This flag controls whether `rustc` will attempt to vectorize code using +This flag disables vectorization using [superword-level parallelism](https://llvm.org/docs/Vectorizers.html#the-slp-vectorizer). -It takes one of the following values: - -* `y`, `yes`, `on`, or no value: disable SLP vectorization. -* `n`, `no`, or `off`: enable SLP vectorization (the default). ## soft-float @@ -309,7 +298,7 @@ This flag controls the optimization level. * `2`: some optimizations. * `3`: all optimizations. * `s`: optimize for binary size. -* `z`: optimize for binary size, but also turn off loop vectorization.. +* `z`: optimize for binary size, but also turn off loop vectorization. Note: The [`-O` flag][option-o-optimize] is an alias for `-C opt-level=2`. |
