hdl.xfrm: avoid cycles in union-find graph in LHSGroupAnalyzer.
This commit is contained in:
parent
3448953f61
commit
621dddebfd
2 changed files with 16 additions and 0 deletions
|
|
@ -298,6 +298,8 @@ class LHSGroupAnalyzer(StatementVisitor):
|
|||
root_group = self.find(root)
|
||||
for leaf in leaves:
|
||||
leaf_group = self.find(leaf)
|
||||
if root_group == leaf_group:
|
||||
continue
|
||||
self.unions[leaf_group] = root_group
|
||||
|
||||
def groups(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue