JVM optimize out temporary variables in bytecode

This commit is contained in:
Dmitry Petrov
2021-08-13 12:38:20 +03:00
committed by TeamCityServer
parent bddfd086f6
commit 041773fd25
22 changed files with 964 additions and 44 deletions
@@ -0,0 +1,8 @@
class A(val bn: B?)
class B(val cn: C?)
class C(val s: String)
fun test(an: A?) = an?.bn?.cn?.s
// JVM_IR_TEMPLATES
// 0 ASTORE