Dead code elimination

#KT-6602 Fixed
 #KT-6305 Fixed
 #KT-5656 Fixed
This commit is contained in:
Denis Zharkov
2014-12-30 14:55:45 +03:00
parent aecb925b7b
commit 5675d2b26b
10 changed files with 218 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
fun foo() {
return
// val xyz has empty live range because everything after return will be removed as dead
val xyz = 1
}
// 0 xyz