Optimize comparison with zero and null

This commit is contained in:
Michael Bogdanov
2015-04-07 10:31:44 +03:00
parent ccfc613c31
commit 841b199d49
9 changed files with 104 additions and 56 deletions
@@ -0,0 +1,14 @@
fun main(p: String?) {
if (p == null) {
"then"
} else {
"else"
}
}
//0 ICONST_0
//0 ICONST_1
//0 ACONST_NULL
//1 IFNONNULL
//1 IF
//1 GOTO