Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loopy.statistics for CInstructions #647

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kaushikcfd
Copy link
Collaborator

Reported by @sv2518.

@sv2518
Copy link
Contributor

sv2518 commented Jul 11, 2022

Thanks!

elif isinstance(insn, (NoOpInstruction, BarrierInstruction)):
pass
elif isinstance(insn, (CInstruction, NoOpInstruction, BarrierInstruction)):
exprs_in_insn = tuple(insn.predicates)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't know how much computation goes on in a CInstruction, I think we at least need a flag to turn on this behavior, since it's easy to have misconceptions on what it does.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a warning in #649

@kaushikcfd
Copy link
Collaborator Author

@inducer: This is ready for another look!

@sv2518
Copy link
Contributor

sv2518 commented Jul 18, 2022

Can we add something similar so I don't run into the same error with lp.get_mem_access_map?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants