mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Use InContinuousRangeExpressionGenerator for primitive range intrinsics
This commit is contained in:
@@ -3,5 +3,8 @@
|
||||
fun testPrimitiveArray(ints: IntArray) =
|
||||
10 in ints.indices
|
||||
|
||||
// 0 DUP
|
||||
// 0 POP
|
||||
// We currently fail to optimize this method because of DUP_X1 instruction generated for range check.
|
||||
// TODO either don't generate DUP_X1/DUP2_X2 instructions for range checks (extra local variable + extra instructions),
|
||||
// or support DUPn_Xm instructions in PopBackwardPropagationTransformer
|
||||
// - 0 DUP
|
||||
// - 0 POP
|
||||
Reference in New Issue
Block a user