mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
- Turn some const conditions into non-const conditions - Make sure inlined const values are used where required (otherwise they are eliminated by POP backward propagation)
17 lines
154 B
Kotlin
Vendored
17 lines
154 B
Kotlin
Vendored
val a = 1
|
|
|
|
fun main() {
|
|
if (a == 0) {
|
|
"then"
|
|
} else {
|
|
"else"
|
|
}
|
|
}
|
|
|
|
//0 ICONST_0
|
|
//1 ICONST_1
|
|
//0 IFEQ
|
|
//1 IFNE
|
|
//1 IF
|
|
//1 GOTO
|