Use InContinuousRangeExpressionGenerator for primitive range intrinsics

This commit is contained in:
Dmitry Petrov
2017-07-06 11:19:58 +03:00
parent c855b5c889
commit 224848163d
20 changed files with 153 additions and 374 deletions

View File

@@ -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