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
@@ -13,5 +13,5 @@ fun test(x: A?) {
// 0 ACONST_NULL
// JVM_IR_TEMPLATES
// 1 POP
// 2 POP
// 0 ACONST_NULL
@@ -24,4 +24,4 @@ fun test(ss: List<String?>) {
// 2 POP
// JVM_IR_TEMPLATES
// 1 POP
// 2 POP