JVM_IR generate range loops as counter loops when possible
This commit is contained in:
committed by
teamcityserver
parent
d0f207071c
commit
38d6c8ded0
@@ -8,19 +8,17 @@ fun test(): Int {
|
||||
return sum
|
||||
}
|
||||
|
||||
// JVM non-IR uses while.
|
||||
// JVM IR uses if + do-while. The surrounding "if" gets optimized in this test (constant condition).
|
||||
|
||||
// 0 iterator
|
||||
// 0 getStart
|
||||
// 0 getEnd
|
||||
// 0 getFirst
|
||||
// 0 getLast
|
||||
// 0 getStep
|
||||
// 1 IF
|
||||
|
||||
// JVM_TEMPLATES
|
||||
// 1 IF_ICMPGT
|
||||
// 1 IF
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 1 IF_ICMPLE
|
||||
// 1 IF_ICMPGE
|
||||
// 1 IF
|
||||
Reference in New Issue
Block a user