JVM_IR: frame optimization for cast to IntProgression

#KT-29199
This commit is contained in:
Xin Wang
2022-01-25 23:06:49 +08:00
committed by TeamCityServer
parent 15e08893aa
commit fdbcb64d39
4 changed files with 34 additions and 1 deletions
@@ -0,0 +1,7 @@
// TARGET_BACKEND: JVM_IR
fun test(a: Int, b: Int, flag: Boolean) =
(if (flag) a..b else a downTo b).map { it + 1 }
// 0 java/util/Iterator.next \(\)Ljava/lang/Object;
// 1 kotlin/collections/IntIterator.nextInt \(\)I