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

Update insn ids in addition to updating dependency ids in replace_instruction_ids #778

Merged
merged 6 commits into from
May 22, 2023

Conversation

nchristensen
Copy link
Collaborator

Currently replace_instruction_ids only updates the instruction ids in an instruction's depends_on set and no_sync_with set. It doesn't actually update the id property of an instruction, which for me seems unintuitive. This change adds this capability and some documentation for replace_instruction_ids.

@inducer inducer force-pushed the replace_instruction_ids_changes branch from d06ab47 to 8792e0a Compare May 22, 2023 14:17
@inducer inducer enabled auto-merge (squash) May 22, 2023 14:24
@inducer
Copy link
Owner

inducer commented May 22, 2023

This makes good sense to me, thanks! I added some type annotations as well.

@inducer inducer merged commit ab8b206 into inducer:main May 22, 2023
@nchristensen nchristensen deleted the replace_instruction_ids_changes branch May 22, 2023 16:13
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.

2 participants