[K2] Don't include IRTranslation time as total Generation time

Such behavior is more on par with K1.

#KT-65094 Fixed
This commit is contained in:
Ivan Kylchik
2024-03-04 18:02:27 +01:00
committed by Space Team
parent de74ca5902
commit cbda22ab48
3 changed files with 3 additions and 3 deletions
@@ -157,7 +157,6 @@ object FirKotlinToJvmBytecodeCompiler {
return null
}
performanceManager?.notifyGenerationStarted()
performanceManager?.notifyIRTranslationStarted()
val fir2IrExtensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
@@ -166,6 +165,7 @@ object FirKotlinToJvmBytecodeCompiler {
performanceManager?.notifyIRTranslationFinished()
performanceManager?.notifyGenerationStarted()
val generationState = runBackend(
fir2IrExtensions,
fir2IrAndIrActualizerResult,
@@ -138,7 +138,6 @@ fun compileModulesUsingFrontendIrAndLightTree(
return false
}
performanceManager?.notifyGenerationStarted()
performanceManager?.notifyIRTranslationStarted()
val compilerEnvironment = ModuleCompilerEnvironment(projectEnvironment, diagnosticsReporter)
@@ -146,6 +145,7 @@ fun compileModulesUsingFrontendIrAndLightTree(
performanceManager?.notifyIRTranslationFinished()
performanceManager?.notifyGenerationStarted()
val codegenOutput = generateCodeFromIr(irInput, compilerEnvironment, performanceManager)
diagnosticsReporter.reportToMessageCollector(
@@ -267,7 +267,6 @@ open class IncrementalFirJvmCompilerRunner(
val cycleResult = firIncrementalCycle() ?: return ExitCode.COMPILATION_ERROR to allCompiledSources
performanceManager?.notifyGenerationStarted()
performanceManager?.notifyIRTranslationStarted()
val extensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
@@ -278,6 +277,7 @@ open class IncrementalFirJvmCompilerRunner(
performanceManager?.notifyIRTranslationFinished()
performanceManager?.notifyGenerationStarted()
val irInput = ModuleCompilerIrBackendInput(
targetId,
configuration,