Remove -Znew-llvm-pass-manager
This commit is contained in:
parent
2860f77a0d
commit
38e0e8f7bb
8 changed files with 3 additions and 13 deletions
|
@ -513,10 +513,6 @@ pub(crate) unsafe fn maybe_optimize(
|
||||||
let module_name = module.name.clone();
|
let module_name = module.name.clone();
|
||||||
let module_name = Some(&module_name[..]);
|
let module_name = Some(&module_name[..]);
|
||||||
|
|
||||||
if let Some(false) = config.new_llvm_pass_manager {
|
|
||||||
diag_handler.warn("ignoring `-Z new-llvm-pass-manager=no`, which is no longer supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
if config.emit_no_opt_bc {
|
if config.emit_no_opt_bc {
|
||||||
let out = cgcx.output_filenames.temp_path_ext("no-opt.bc", module_name);
|
let out = cgcx.output_filenames.temp_path_ext("no-opt.bc", module_name);
|
||||||
let out = path_to_c_string(&out);
|
let out = path_to_c_string(&out);
|
||||||
|
|
|
@ -113,7 +113,6 @@ pub struct ModuleConfig {
|
||||||
pub vectorize_slp: bool,
|
pub vectorize_slp: bool,
|
||||||
pub merge_functions: bool,
|
pub merge_functions: bool,
|
||||||
pub inline_threshold: Option<u32>,
|
pub inline_threshold: Option<u32>,
|
||||||
pub new_llvm_pass_manager: Option<bool>,
|
|
||||||
pub emit_lifetime_markers: bool,
|
pub emit_lifetime_markers: bool,
|
||||||
pub llvm_plugins: Vec<String>,
|
pub llvm_plugins: Vec<String>,
|
||||||
}
|
}
|
||||||
|
@ -265,7 +264,6 @@ impl ModuleConfig {
|
||||||
},
|
},
|
||||||
|
|
||||||
inline_threshold: sess.opts.cg.inline_threshold,
|
inline_threshold: sess.opts.cg.inline_threshold,
|
||||||
new_llvm_pass_manager: sess.opts.unstable_opts.new_llvm_pass_manager,
|
|
||||||
emit_lifetime_markers: sess.emit_lifetime_markers(),
|
emit_lifetime_markers: sess.emit_lifetime_markers(),
|
||||||
llvm_plugins: if_regular!(sess.opts.unstable_opts.llvm_plugins.clone(), vec![]),
|
llvm_plugins: if_regular!(sess.opts.unstable_opts.llvm_plugins.clone(), vec![]),
|
||||||
}
|
}
|
||||||
|
|
|
@ -758,7 +758,6 @@ fn test_unstable_options_tracking_hash() {
|
||||||
tracked!(mir_opt_level, Some(4));
|
tracked!(mir_opt_level, Some(4));
|
||||||
tracked!(move_size_limit, Some(4096));
|
tracked!(move_size_limit, Some(4096));
|
||||||
tracked!(mutable_noalias, Some(true));
|
tracked!(mutable_noalias, Some(true));
|
||||||
tracked!(new_llvm_pass_manager, Some(true));
|
|
||||||
tracked!(no_generate_arange_section, true);
|
tracked!(no_generate_arange_section, true);
|
||||||
tracked!(no_link, true);
|
tracked!(no_link, true);
|
||||||
tracked!(no_unique_section_names, true);
|
tracked!(no_unique_section_names, true);
|
||||||
|
|
|
@ -1409,8 +1409,6 @@ options! {
|
||||||
"the size at which the `large_assignments` lint starts to be emitted"),
|
"the size at which the `large_assignments` lint starts to be emitted"),
|
||||||
mutable_noalias: Option<bool> = (None, parse_opt_bool, [TRACKED],
|
mutable_noalias: Option<bool> = (None, parse_opt_bool, [TRACKED],
|
||||||
"emit noalias metadata for mutable references (default: yes)"),
|
"emit noalias metadata for mutable references (default: yes)"),
|
||||||
new_llvm_pass_manager: Option<bool> = (None, parse_opt_bool, [TRACKED],
|
|
||||||
"use new LLVM pass manager (default: no)"),
|
|
||||||
nll_facts: bool = (false, parse_bool, [UNTRACKED],
|
nll_facts: bool = (false, parse_bool, [UNTRACKED],
|
||||||
"dump facts from NLL analysis into side files (default: no)"),
|
"dump facts from NLL analysis into side files (default: no)"),
|
||||||
nll_facts_dir: String = ("nll-facts".to_string(), parse_string, [UNTRACKED],
|
nll_facts_dir: String = ("nll-facts".to_string(), parse_string, [UNTRACKED],
|
||||||
|
|
|
@ -41,7 +41,7 @@ $ rustc -Zself-profile -Zself-profile-events=default,args
|
||||||
|
|
||||||
- `llvm`
|
- `llvm`
|
||||||
- Adds tracing information about LLVM passes and codegeneration.
|
- Adds tracing information about LLVM passes and codegeneration.
|
||||||
- Disabled by default because this only works when `-Znew-llvm-pass-manager` is enabled.
|
- Disabled by default for historical reasons.
|
||||||
|
|
||||||
## Event synonyms
|
## Event synonyms
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,6 @@
|
||||||
-Z mir-opt-level=val -- MIR optimization level (0-4; default: 1 in non optimized builds and 2 in optimized builds)
|
-Z mir-opt-level=val -- MIR optimization level (0-4; default: 1 in non optimized builds and 2 in optimized builds)
|
||||||
-Z move-size-limit=val -- the size at which the `large_assignments` lint starts to be emitted
|
-Z move-size-limit=val -- the size at which the `large_assignments` lint starts to be emitted
|
||||||
-Z mutable-noalias=val -- emit noalias metadata for mutable references (default: yes)
|
-Z mutable-noalias=val -- emit noalias metadata for mutable references (default: yes)
|
||||||
-Z new-llvm-pass-manager=val -- use new LLVM pass manager (default: no)
|
|
||||||
-Z nll-facts=val -- dump facts from NLL analysis into side files (default: no)
|
-Z nll-facts=val -- dump facts from NLL analysis into side files (default: no)
|
||||||
-Z nll-facts-dir=val -- the directory the NLL facts are dumped into (default: `nll-facts`)
|
-Z nll-facts-dir=val -- the directory the NLL facts are dumped into (default: `nll-facts`)
|
||||||
-Z no-analysis=val -- parse and expand the source, but run no analysis
|
-Z no-analysis=val -- parse and expand the source, but run no analysis
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// build-fail
|
// build-fail
|
||||||
// compile-flags: -Cpasses=unknown-pass -Z new-llvm-pass-manager=yes
|
// compile-flags: -Cpasses=unknown-pass
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
//
|
//
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
// revisions: opt0 opt1
|
// revisions: opt0 opt1
|
||||||
// compile-flags: -Znew-llvm-pass-manager=yes -Zsanitizer=address -Clto=thin
|
// compile-flags: -Zsanitizer=address -Clto=thin
|
||||||
//[opt0]compile-flags: -Copt-level=0
|
//[opt0]compile-flags: -Copt-level=0
|
||||||
//[opt1]compile-flags: -Copt-level=1
|
//[opt1]compile-flags: -Copt-level=1
|
||||||
// run-fail
|
// run-fail
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue