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

Refactoring jump targets and backedges to update inplace #83

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

Conversation

kc611
Copy link
Contributor

@kc611 kc611 commented Jul 7, 2023

Resolves: #73
Builds on top of #50
As an alternative to #58,

We can update the jump_targets and backedges within the BasicBlock object to prevent copies and do minimal changes to code logic.

@esc
Copy link
Member

esc commented Jul 31, 2023

Can this be rebased onto main?

@esc
Copy link
Member

esc commented Aug 3, 2023

Question: why was it necessary to remove the ability to deep-copy before application of any major algorithm? It should still be possible to deep-copy between closing, loop- and branch-restructure?

Copy link
Member

@esc esc left a comment

Choose a reason for hiding this comment

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

I have given this a first pass and found some items to address.

numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/basic_block.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/scfg.py Outdated Show resolved Hide resolved
numba_rvsdg/core/datastructures/scfg.py Outdated Show resolved Hide resolved
@kc611
Copy link
Contributor Author

kc611 commented Aug 29, 2023

Question: why was it necessary to remove the ability to deep-copy before application of any major algorithm? It should still be possible to deep-copy between closing, loop- and branch-restructure?

It wasn't necessary to remove it, but rather it makes no difference for it to be there, since the graph is anyways mutable. Unless we have a fallback mechanism which I think is actually something we should look into.

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.

Refactor: Make jump_target a property of SCFG
2 participants