[K/N][codegen] Escape analysis: increased a bit the number of iterations

This helps the algorithm to converge in more situations and increases
the number of stack allocated objects
This commit is contained in:
Igor Chevdar
2021-05-20 20:51:11 +05:00
parent 29584edcdd
commit f431b4b171
@@ -556,7 +556,7 @@ internal object EscapeAnalysis {
context.log { "Escape analysis is not changed" }
} else {
context.log { "Escape analysis was refined:\n$endResult" }
if (numberOfRuns[function]!! > 1) {
if (numberOfRuns[function]!! > 2) {
// TODO: suboptimal. May be it is possible somehow handle the entire component at once?
context.log {
"WARNING: Escape analysis for $function seems not to be converging." +