Support Long and Char in const-bounded counter loop generation
If the loop end value is a compile-time constant (best we can do now), and it is safe to iterate over a given range using "naive" for loop (using '<=' or '>=' in loop condition), generate such loops for Longs and Chars as well Ints (Bytes, Shorts).
This commit is contained in:
+1
-2
@@ -29,5 +29,4 @@ fun box(): String {
|
||||
// 0 getFirst
|
||||
// 0 getLast
|
||||
// 0 getStep
|
||||
// 2 IF_ICMPEQ
|
||||
// ^ 1 for char progression, 1 for long progression
|
||||
// 0 IF_ICMPEQ
|
||||
Reference in New Issue
Block a user