JVM_IR generate less bytecode for for-loops if possible(KT-22334).

This commit is contained in:
Xin Wang
2021-12-28 10:54:01 +08:00
committed by Dmitry Petrov
parent 3b928e1780
commit 9ae452e489
27 changed files with 830 additions and 12 deletions
@@ -22,11 +22,12 @@ fun test(): Int {
// 1 IF
// JVM_IR_TEMPLATES
// 1 IF_ICMPGT
// 1 IF_ICMPEQ
// 2 IF
// 7 ILOAD
// 0 IF_ICMPGT
// 1 IF_ICMPGE
// 0 IF_ICMPEQ
// 1 IF
// 5 ILOAD
// 4 ISTORE
// 1 IINC
// 1 IADD
// 1 ISUB
// 0 ISUB