JVM_IR optimize temporary vals initialized with other vals

This commit is contained in:
Dmitry Petrov
2021-08-23 14:37:28 +03:00
committed by TeamCityServer
parent 939f25333e
commit 568958492a
12 changed files with 422 additions and 380 deletions
@@ -0,0 +1,9 @@
fun test(xs: IntArray, dx: Int) {
for (i in xs.indices) {
xs[i] += dx
}
}
// JVM_IR_TEMPLATES
// 5 ALOAD
// 6 ILOAD