JVM_IR: Use direct field access instead of calling certain accessors.

Final default properties accessors that access a backing field
on the same class can be replaced by direct field use.

Perform the optimization late in the pipeline to allow lowerings
to expose more opportunities for optimizations.
This commit is contained in:
Mads Ager
2020-01-27 13:13:32 +01:00
committed by max-kammerer
parent 09057c485b
commit d68a1898d0
8 changed files with 103 additions and 51 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
package b
abstract class B {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
val x = 1
class A {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class Example
{
var a1 = 0