IR: an option to automatically select the number of lowering threads
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ private class PerformByIrFilePhase<Context : CommonBackendContext>(
|
||||
context: Context,
|
||||
input: IrModuleFragment
|
||||
): IrModuleFragment {
|
||||
val nThreads = context.configuration.get(CommonConfigurationKeys.THREADS_FOR_FILE_LOWERINGS) ?: 1
|
||||
val nThreads = context.configuration.get(CommonConfigurationKeys.PARALLEL_BACKEND_THREADS) ?: 1
|
||||
return if (nThreads > 1)
|
||||
invokeParallel(phaseConfig, phaserState, context, input, nThreads)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user