You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exact graph groups i0, i1, i2, i4 and i5 together as they are just used together with the pointwise ops. As you can see in the above diagram, this results in a cycle between the two groups.
Being acyclic is one of the basic assumptions we have in the loop promotion analysis. For example, ValGraphStmtSort won't work with cyclic graphs, which means, for example, computeCoveredGroups wont't work since it relies on ValGraphStmtSort. The propagation of promotion info through the IEL graph (intersection of exact and loop graphs) is also done with ValGraphStmtSort, so that may not work either, although IEL might not necessarily be cyclic even when the exact graph is cyclic.
The text was updated successfully, but these errors were encountered:
To workaround the cyclic graph issue (#3072) as much as possible, this
PR skips the full analysis when possible. When skipped, the alternative
analysis is just simply picking the first ID, so it shouldn't have any
constraint with the graph structure. It can be also considered a
shortcut as it would skip the analysis if not necessary.
Also added a check of existence of cycles in a graph as it isn't
supported.
Example (same as #3068):
The exact graph groups
i0
,i1
,i2
,i4
andi5
together as they are just used together with the pointwise ops. As you can see in the above diagram, this results in a cycle between the two groups.Being acyclic is one of the basic assumptions we have in the loop promotion analysis. For example,
ValGraphStmtSort
won't work with cyclic graphs, which means, for example,computeCoveredGroups
wont't work since it relies onValGraphStmtSort
. The propagation of promotion info through the IEL graph (intersection of exact and loop graphs) is also done withValGraphStmtSort
, so that may not work either, although IEL might not necessarily be cyclic even when the exact graph is cyclic.The text was updated successfully, but these errors were encountered: