Commit bafb3e2
Add cycle detection to ResourceSharingPass::PerformFoldingActions.
This change modifies the PerformFoldingActions function to check that the introduction of priority_sel input selection would not introduce a cycle when the folded nodes are merged together. This is to ensure the pass does not produce an unrecoverable error that would otherwise occur when the next pass attempts to iterate nodes using DfsVisitor.
This does not yet solve the underlying bug in folding action legalization or analysis that exists but surfaces that error in a more usable way.
PiperOrigin-RevId: 8954330621 parent a672865 commit bafb3e2
File tree
3 files changed
+28
-2
lines changed- xls/passes
3 files changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| 1116 | + | |
1116 | 1117 | | |
1117 | 1118 | | |
1118 | 1119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
1696 | 1697 | | |
1697 | 1698 | | |
1698 | 1699 | | |
| 1700 | + | |
1699 | 1701 | | |
1700 | 1702 | | |
1701 | 1703 | | |
| |||
1913 | 1915 | | |
1914 | 1916 | | |
1915 | 1917 | | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
1916 | 1938 | | |
1917 | 1939 | | |
1918 | 1940 | | |
| |||
2064 | 2086 | | |
2065 | 2087 | | |
2066 | 2088 | | |
2067 | | - | |
2068 | | - | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
2069 | 2092 | | |
2070 | 2093 | | |
2071 | 2094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| 311 | + | |
310 | 312 | | |
311 | 313 | | |
312 | 314 | | |
| |||
0 commit comments