diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/inline/InlineCodegen.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/inline/InlineCodegen.kt index ea369419f42..7d0e4e7d3cd 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/inline/InlineCodegen.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/inline/InlineCodegen.kt @@ -150,12 +150,7 @@ abstract class InlineCodegen( } } - @Suppress("UNREACHABLE_CODE") private fun canSkipStackSpillingOnInline(methodNode: MethodNode): Boolean { - // TODO: Temporary disable this optimization until - // https://issuetracker.google.com/issues/68796377 is fixed - // or until d8 substitute dex - return false // Stack spilling before inline function 'f' call is required if: // - 'f' is a suspend function // - 'f' has try-catch blocks diff --git a/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/simple.kt b/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/simple.kt index 5a4f6634e82..c5decec1944 100644 --- a/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/simple.kt +++ b/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/simple.kt @@ -9,6 +9,6 @@ fun foo() : Int { } // fake inline variables occupy 2 ISTOREs. -// 5 ISTORE -// 7 ILOAD +// 3 ISTORE +// 5 ILOAD // 0 InlineMarker