Auto merge of #94130 - erikdesjardins:partially, r=nikic
Use undef for (some) partially-uninit constants There needs to be some limit to avoid perf regressions on large arrays with undef in each element (see comment in the code). Fixes: #84565 Original PR: #83698 Depends on LLVM 14: #93577
This commit is contained in:
commit
ece55d416e
7 changed files with 44 additions and 66 deletions
|
@ -1336,9 +1336,6 @@ options! {
|
|||
"panic strategy for panics in drops"),
|
||||
parse_only: bool = (false, parse_bool, [UNTRACKED],
|
||||
"parse only; do not compile, assemble, or link (default: no)"),
|
||||
partially_uninit_const_threshold: Option<usize> = (None, parse_opt_number, [TRACKED],
|
||||
"allow generating const initializers with mixed init/uninit bytes, \
|
||||
and set the maximum total size of a const allocation for which this is allowed (default: never)"),
|
||||
perf_stats: bool = (false, parse_bool, [UNTRACKED],
|
||||
"print some performance-related statistics (default: no)"),
|
||||
pick_stable_methods_before_any_unstable: bool = (true, parse_bool, [TRACKED],
|
||||
|
@ -1483,6 +1480,9 @@ options! {
|
|||
"in diagnostics, use heuristics to shorten paths referring to items"),
|
||||
ui_testing: bool = (false, parse_bool, [UNTRACKED],
|
||||
"emit compiler diagnostics in a form suitable for UI testing (default: no)"),
|
||||
uninit_const_chunk_threshold: usize = (16, parse_number, [TRACKED],
|
||||
"allow generating const initializers with mixed init/uninit chunks, \
|
||||
and set the maximum number of chunks for which this is allowed (default: 16)"),
|
||||
unleash_the_miri_inside_of_you: bool = (false, parse_bool, [TRACKED],
|
||||
"take the brakes off const evaluation. NOTE: this is unsound (default: no)"),
|
||||
unpretty: Option<String> = (None, parse_unpretty, [UNTRACKED],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue