Convert const values in ranges without explicit cast

This commit is contained in:
Ivan Kylchik
2021-12-14 14:41:23 +03:00
parent 0b22cf6cb9
commit 44cf64a00c
5 changed files with 73 additions and 26 deletions
@@ -69,8 +69,8 @@ fun testULongDownTo(a: ULong): Int {
// 0 INVOKE\w+ kotlin/U(Int|Long).(un)?box-impl
// JVM_IR_TEMPLATES
// 31 ILOAD
// 21 ISTORE
// 26 ILOAD
// 18 ISTORE
// 6 IADD
// 0 ISUB
// 3 IINC
@@ -31,8 +31,8 @@ fun f(a: UInt): Int {
// 0 INVOKE\w+ kotlin/UInt.(un)?box-impl
// JVM_IR_TEMPLATES
// 7 ILOAD
// 4 ISTORE
// 5 ILOAD
// 3 ISTORE
// 0 IADD
// 0 ISUB
// 2 IINC
@@ -39,8 +39,8 @@ fun f(a: UInt): Int {
// 1 IF
// JVM_IR_TEMPLATES
// 5 ILOAD
// 4 ISTORE
// 4 ILOAD
// 3 ISTORE
// 0 IADD
// 0 ISUB
// 2 IINC
@@ -38,8 +38,8 @@ fun f(a: UInt): Int {
// 1 IF
// JVM_IR_TEMPLATES
// 5 ILOAD
// 4 ISTORE
// 4 ILOAD
// 3 ISTORE
// 0 IADD
// 0 ISUB
// 2 IINC