Added IfNullExpressionsFusionLowering in pipeline
This commit is contained in:
committed by
LepilkinaElena
parent
8fe80afaf7
commit
ebc7449f5f
+6
@@ -341,4 +341,10 @@ internal val returnsInsertionPhase = makeKonanFileLoweringPhase(
|
||||
name = "ReturnsInsertion",
|
||||
description = "Returns insertion for Unit functions",
|
||||
prerequisite = setOf(autoboxPhase, coroutinesPhase, enumClassPhase)
|
||||
)
|
||||
|
||||
internal val ifNullExpressionsFusionPhase = makeKonanFileLoweringPhase(
|
||||
::IfNullExpressionsFusionLowering,
|
||||
name = "IfNullExpressionsFusionLowering",
|
||||
description = "Simplify '?.' and '?:' operator chains"
|
||||
)
|
||||
+1
@@ -347,6 +347,7 @@ internal val allLoweringsPhase = namedIrModulePhase(
|
||||
innerClassPhase then
|
||||
dataClassesPhase then
|
||||
singleAbstractMethodPhase then
|
||||
ifNullExpressionsFusionPhase then
|
||||
builtinOperatorPhase then
|
||||
finallyBlocksPhase then
|
||||
testProcessorPhase then
|
||||
|
||||
Reference in New Issue
Block a user