diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-04-22 21:11:38 +0200 | 
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-04-22 21:11:38 +0200 | 
| commit | b70b01b11250b5dc8f300d26fe1dba8b5d189999 (patch) | |
| tree | 10da27b4f8373f30411e77667b6056fab48239c2 /compiler/rustc_codegen_cranelift/src/config.rs | |
| parent | 41ef7678061dde625bf273ab6b036aebd7153a43 (diff) | |
| parent | f2cdd4a78d89c009342197cf5844a21f8aa813df (diff) | |
| download | rust-b70b01b11250b5dc8f300d26fe1dba8b5d189999.tar.gz rust-b70b01b11250b5dc8f300d26fe1dba8b5d189999.zip  | |
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/config.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/config.rs | 9 | 
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/config.rs b/compiler/rustc_codegen_cranelift/src/config.rs index eef3c8c8d6e..e59a0cb0a23 100644 --- a/compiler/rustc_codegen_cranelift/src/config.rs +++ b/compiler/rustc_codegen_cranelift/src/config.rs @@ -48,12 +48,6 @@ pub struct BackendConfig { /// Can be set using `-Cllvm-args=display_cg_time=...`. pub display_cg_time: bool, - /// The register allocator to use. - /// - /// Defaults to the value of `CG_CLIF_REGALLOC` or `backtracking` otherwise. Can be set using - /// `-Cllvm-args=regalloc=...`. - pub regalloc: String, - /// Enable the Cranelift ir verifier for all compilation passes. If not set it will only run /// once before passing the clif ir to Cranelift for compilation. /// @@ -80,8 +74,6 @@ impl Default for BackendConfig { args.split(' ').map(|arg| arg.to_string()).collect() }, display_cg_time: bool_env_var("CG_CLIF_DISPLAY_CG_TIME"), - regalloc: std::env::var("CG_CLIF_REGALLOC") - .unwrap_or_else(|_| "backtracking".to_string()), enable_verifier: cfg!(debug_assertions) || bool_env_var("CG_CLIF_ENABLE_VERIFIER"), disable_incr_cache: bool_env_var("CG_CLIF_DISABLE_INCR_CACHE"), } @@ -101,7 +93,6 @@ impl BackendConfig { match name { "mode" => config.codegen_mode = value.parse()?, "display_cg_time" => config.display_cg_time = parse_bool(name, value)?, - "regalloc" => config.regalloc = value.to_string(), "enable_verifier" => config.enable_verifier = parse_bool(name, value)?, "disable_incr_cache" => config.disable_incr_cache = parse_bool(name, value)?, _ => return Err(format!("Unknown option `{}`", name)),  | 
