[IR] Split const folding into necessary one and for optimizations only
In this commit we have a lot of change in test data. This was caused by the way where we evaluate constants. We split constant evaluation into two distinct parts: only necessary evaluations for `fir2ir` (like const val and annotations) and optimizations for lowering. Now we don't do all constant evaluation on `fir2ir`, but IR dump is executed after this phase, so test data changed. #KT-58923
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ value class IT {
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "IT(x=" + <this>.#x + ")"
|
||||
return "IT(" + "x=" + <this>.#x + ")"
|
||||
}
|
||||
|
||||
}
|
||||
@@ -102,7 +102,7 @@ value class InlineMutableSet : MutableSet<IT> {
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "InlineMutableSet(ms=" + <this>.#ms + ")"
|
||||
return "InlineMutableSet(" + "ms=" + <this>.#ms + ")"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user