Always do stack spilling during inline cause of dex problem

Dex issue: https://issuetracker.google.com/issues/68796377

  #KT-20844 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-11-13 13:35:58 +01:00
parent 519e5c33d8
commit dff6e943bb
12 changed files with 163 additions and 2 deletions
@@ -184,6 +184,11 @@ abstract class InlineCodegen<out T: BaseExpressionCodegen>(
}
private fun canSkipStackSpillingOnInline(methodNode: MethodNode): Boolean {
// 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