KT-6916 Slow bytecode for downTo iteration like for (i in max downTo min)

#KT-6916 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-03-05 21:24:11 +03:00
parent 4d1c2ab0e3
commit 14b16ff87c
6 changed files with 70 additions and 6 deletions
@@ -0,0 +1,11 @@
fun f() {
for (i in 0..5 step 2) {
}
for (i in 5 downTo 1) {
}
}
// 0 iterator
// 2 getStart
// 2 getEnd
// 2 getIncrement