Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

[BUG] get_all_sub_nodes returns duplicate nodes when called after ImportPass #372

Open
mgtm98 opened this issue May 10, 2024 · 0 comments
Open

Comments

@mgtm98
Copy link
Collaborator

mgtm98 commented May 10, 2024

Describe the bug
when I call ir.get_all_sub_nodes(ast.Module) after import pass, the output have duplicate nodes

To Reproduce
add this code snippet in after_pass in ImportPass then run it

all_modules =  set(ir.get_all_sub_nodes(ast.Module))
print(self, ir.name, [i.name for i in all_modules])
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant