[FIR] CFG: drop redundant edges

Edges from class to its functions and nested classes are redundant
and lead to extra resolution work in lazy resolve mode

^KT-59600 Fixed
This commit is contained in:
Dmitrii Gridin
2023-06-23 18:05:09 +02:00
committed by Space Team
parent df28bd1d79
commit 09ca335b7e
53 changed files with 931 additions and 763 deletions
@@ -38,24 +38,6 @@ digraph lambdaInWhenBranch_kt {
}
12 [label="Exit class SubClass1" style="filled" fillcolor=red];
}
subgraph cluster_5 {
color=blue
13 [label="Enter function copy" style="filled" fillcolor=red];
14 [label="Enter default value of t"];
subgraph cluster_6 {
color=blue
15 [label="Enter default value of t" style="filled" fillcolor=red];
16 [label="Access variable R|/SubClass1.t|"];
17 [label="Exit default value of t" style="filled" fillcolor=red];
}
18 [label="Exit default value of t"];
19 [label="Exit function copy" style="filled" fillcolor=red];
}
subgraph cluster_7 {
color=blue
20 [label="Enter function component1" style="filled" fillcolor=red];
21 [label="Exit function component1" style="filled" fillcolor=red];
}
5 -> {6} [color=green];
5 -> {12} [style=dotted];
5 -> {6 9} [style=dashed];
@@ -65,15 +47,33 @@ digraph lambdaInWhenBranch_kt {
9 -> {10};
10 -> {11};
11 -> {12} [color=green];
12 -> {13 20} [color=green];
12 -> {13 20} [style=dashed];
subgraph cluster_5 {
color=red
13 [label="Enter function component1" style="filled" fillcolor=red];
14 [label="Exit function component1" style="filled" fillcolor=red];
}
13 -> {14};
14 -> {15 18};
14 -> {15} [style=dashed];
subgraph cluster_6 {
color=red
15 [label="Enter function copy" style="filled" fillcolor=red];
16 [label="Enter default value of t"];
subgraph cluster_7 {
color=blue
17 [label="Enter default value of t" style="filled" fillcolor=red];
18 [label="Access variable R|/SubClass1.t|"];
19 [label="Exit default value of t" style="filled" fillcolor=red];
}
20 [label="Exit default value of t"];
21 [label="Exit function copy" style="filled" fillcolor=red];
}
15 -> {16};
16 -> {17};
16 -> {17 20};
16 -> {17} [style=dashed];
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
subgraph cluster_8 {
@@ -87,19 +87,18 @@ digraph lambdaInWhenBranch_kt {
}
26 [label="Exit class SubClass2" style="filled" fillcolor=red];
}
subgraph cluster_10 {
color=blue
27 [label="Enter function copy" style="filled" fillcolor=red];
28 [label="Exit function copy" style="filled" fillcolor=red];
}
22 -> {23} [color=green];
22 -> {26} [style=dotted];
22 -> {23} [style=dashed];
23 -> {24};
24 -> {25};
25 -> {26} [color=green];
26 -> {27} [color=green];
26 -> {27} [style=dashed];
subgraph cluster_10 {
color=red
27 [label="Enter function copy" style="filled" fillcolor=red];
28 [label="Exit function copy" style="filled" fillcolor=red];
}
27 -> {28};
subgraph cluster_11 {