[K/N] Added returns before building DFG

This commit is contained in:
Elena Lepilkina
2021-08-09 10:15:48 +03:00
committed by Igor Chevdar
parent 16f0ba8e46
commit 12d694de46
@@ -394,6 +394,9 @@ internal val bitcodePhase = NamedCompilerPhase(
name = "Bitcode", name = "Bitcode",
description = "LLVM Bitcode generation", description = "LLVM Bitcode generation",
lower = contextLLVMSetupPhase then lower = contextLLVMSetupPhase then
propertyAccessorInlinePhase then // Have to run after link dependencies phase, because fields
// from dependencies can be changed during lowerings.
returnsInsertionPhase then
buildDFGPhase then buildDFGPhase then
devirtualizationAnalysisPhase then devirtualizationAnalysisPhase then
dcePhase then dcePhase then
@@ -404,9 +407,6 @@ internal val bitcodePhase = NamedCompilerPhase(
ghaPhase then ghaPhase then
RTTIPhase then RTTIPhase then
generateDebugInfoHeaderPhase then generateDebugInfoHeaderPhase then
propertyAccessorInlinePhase then // Have to run after link dependencies phase, because fields
// from dependencies can be changed during lowerings.
returnsInsertionPhase then
escapeAnalysisPhase then escapeAnalysisPhase then
localEscapeAnalysisPhase then localEscapeAnalysisPhase then
codegenPhase then codegenPhase then