Files
kotlin/compiler/testData/codegen/bytecodeText/conditions/conjunction.kt
Jiaxiang Chen 4b99d85322 Optimize JVM byte code generation for conditional conjunction
Implement an intrinsic method for boolean.and operation, and replace
ANDAND condition with a call to such intrinsic method.
2019-04-29 13:28:18 +02:00

18 lines
196 B
Kotlin
Vendored

val a = false
val b = false
val c = false
fun main() {
if (a && b && c) {
"then"
} else {
"else"
}
}
// 0 ICONST_0
// 0 ICONST_1
// 3 IFEQ
// 0 IFNE
// 3 IF
// 1 GOTO