Fold I2L with ICONST_n when beneficial

ICONST_0; I2L -> LCONST_0
ICONST_1; I2L -> LCONST_1
This commit is contained in:
Dmitry Petrov
2017-07-07 13:45:55 +03:00
parent ad80c3cd7f
commit aa7db727ba
5 changed files with 19 additions and 4 deletions
@@ -10,5 +10,7 @@ fun testLongWithObjectArray(i: Long, xs: Array<Any>) = i in xs.indices
// 0 getIndices
// 0 contains
// 4 I2L
// 2 I2L
// 4 ARRAYLENGTH
// 2 LCONST_0
// 6 ICONST_0