Add a cranelift flag to enable/disable verbose logs for regalloc2 (#4481)

This commit is contained in:
Benjamin Bouvier
2022-07-21 11:12:13 +02:00
committed by GitHub
parent 9c72a0566e
commit 4ce329d1eb
4 changed files with 15 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ pub fn compile<B: LowerBackend + TargetIsa>(
let regalloc_result = {
let _tt = timing::regalloc();
let mut options = RegallocOptions::default();
options.verbose_log = log::log_enabled!(log::Level::Trace);
options.verbose_log = b.flags().regalloc_verbose_logs();
regalloc2::run(&vcode, machine_env, &options)
.map_err(|err| {
log::error!(

View File

@@ -527,6 +527,7 @@ libcall_call_conv = "isa_default"
baldrdash_prologue_words = 0
probestack_size_log2 = 12
regalloc_checker = false
regalloc_verbose_logs = false
enable_alias_analysis = true
enable_verifier = true
is_pic = false