]> git.lizzy.rs Git - rust.git/commitdiff
simplify condition in start_executing_work()
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 28 Feb 2020 17:09:29 +0000 (18:09 +0100)
committerMatthias Krüger <matthias.krueger@famsik.de>
Fri, 28 Feb 2020 17:09:29 +0000 (18:09 +0100)
src/librustc_codegen_ssa/back/write.rs

index bc20ed6f6c5e822fa6feec76748957b77380e90a..2cdbb204696c7b8719d346c319416cd490b0c827 100644 (file)
@@ -1244,11 +1244,11 @@ fn start_executing_work<B: ExtraBackendMethods>(
         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: