Optimize more redundant kotlin/jvm/internal/Refs
The number of initializations of the `value` field before the live range begins does not really matter so long as we insert a write of a default value to the local if there were none.
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// TODO KT-36648 Captured variables not optimized in JVM_IR
|
||||
// TODO: JVM_IR uses ObjectRef instead of IntRef for the value
|
||||
|
||||
fun test(): UInt {
|
||||
var c: UInt
|
||||
@@ -9,5 +9,5 @@ fun test(): UInt {
|
||||
return c
|
||||
}
|
||||
|
||||
// 1 ASTORE 0
|
||||
// 1 LOCALVARIABLE c Lkotlin/jvm/internal/Ref\$IntRef; L1 L.* 0
|
||||
// 2 ISTORE 0
|
||||
// 1 LOCALVARIABLE c I
|
||||
Reference in New Issue
Block a user