JVM IR: simplify chains of negations in if conditions.

Introduce lowering phase that turns !!exp -> exp for the boolean
'not' builtin. This makes sure that code such as

```
if (!!!!!booleanValue) {
    doStuff()
}
```

generates only one branch.
This commit is contained in:
Mads Ager
2019-01-03 11:05:13 +01:00
committed by max-kammerer
parent 90c787e102
commit 57489febf0
4 changed files with 61 additions and 10 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
val two = 2
fun test2() {