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

(Unconfirmed) find_foward_accesses finds start/stop/step conditions of loops when searching backwards in loops for accesses. #2866

Open
LonelyCat124 opened this issue Jan 22, 2025 · 0 comments
Assignees

Comments

@LonelyCat124
Copy link
Collaborator

I think that for code like:

a = 75
do i = 1, a, 25
   a = i
end do

that a next_accesses call on the a in a= i may point to the loop stop point. Since the loop start/stop/steps use the values before the loop - there is no forward_access here on the loop stop point.

I will note that while this behaviour definitely happens for while loops I think that is correct - I don't remember intentionally excluding it from happening for normal Loops so I need to check if this happens or not.

@LonelyCat124 LonelyCat124 self-assigned this Jan 22, 2025
@LonelyCat124 LonelyCat124 changed the title (Unconfirmed) find_foward_accesses find start/stop/step conditions of loops when searching backwards in loops for accesses. (Unconfirmed) find_foward_accesses finds start/stop/step conditions of loops when searching backwards in loops for accesses. Jan 28, 2025
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

No branches or pull requests

1 participant