Optimize comparison with zero and null
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
fun main() {
|
||||
val a = 1
|
||||
if (a == 0) {
|
||||
"then"
|
||||
} else {
|
||||
"else"
|
||||
}
|
||||
}
|
||||
|
||||
//0 ICONST_0
|
||||
//1 ICONST_1
|
||||
//0 IFEQ
|
||||
//1 IFNE
|
||||
//1 IF
|
||||
//1 GOTO
|
||||
Reference in New Issue
Block a user