From: Matthias Krüger Date: Fri, 28 Feb 2020 17:09:29 +0000 (+0100) Subject: simplify condition in start_executing_work() X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1622b6ef7372c40381914facf8794d851fcd9eb1;p=rust.git simplify condition in start_executing_work() --- diff --git a/src/librustc_codegen_ssa/back/write.rs b/src/librustc_codegen_ssa/back/write.rs index bc20ed6f6c5..2cdbb204696 100644 --- a/src/librustc_codegen_ssa/back/write.rs +++ b/src/librustc_codegen_ssa/back/write.rs @@ -1244,11 +1244,11 @@ fn start_executing_work( while !codegen_done || running > 0 || (!codegen_aborted - && (!work_items.is_empty() - || !needs_fat_lto.is_empty() - || !needs_thin_lto.is_empty() - || !lto_import_only_modules.is_empty() - || main_thread_worker_state != MainThreadWorkerState::Idle)) + && !(work_items.is_empty() + && needs_fat_lto.is_empty() + && needs_thin_lto.is_empty() + && lto_import_only_modules.is_empty() + && main_thread_worker_state == MainThreadWorkerState::Idle)) { // While there are still CGUs to be codegened, the coordinator has // to decide how to utilize the compiler processes implicit Token: