(closes #2951) Consider dependencies in ArrayAssignment2LoopTrans#3296
(closes #2951) Consider dependencies in ArrayAssignment2LoopTrans#3296
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3296 +/- ##
=======================================
Coverage 99.95% 99.95%
=======================================
Files 382 382
Lines 54077 54094 +17
=======================================
+ Hits 54055 54072 +17
Misses 22 22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@arporter @LonelyCat124 This is ready for a first review. In addition to preventing ArrayAssingment2Loop to be tripped by possible dependencies, it also adds kwargs to the transformation, takes advantage of the new Reference2ArrayRange behaviour for the validation, enables some valid range nesting, and fixes and issue in get_effective_shape. |
arporter
left a comment
There was a problem hiding this comment.
Nice Sergi, it's a good improvement. Just a little bit of tidying required and I have a question about why the SIR-related changes have happened.
src/psyclone/psyir/transformations/arrayassignment2loops_trans.py
Outdated
Show resolved
Hide resolved
src/psyclone/psyir/transformations/arrayassignment2loops_trans.py
Outdated
Show resolved
Hide resolved
src/psyclone/psyir/transformations/arrayassignment2loops_trans.py
Outdated
Show resolved
Hide resolved
src/psyclone/psyir/transformations/arrayassignment2loops_trans.py
Outdated
Show resolved
Hide resolved
src/psyclone/psyir/transformations/arrayassignment2loops_trans.py
Outdated
Show resolved
Hide resolved
src/psyclone/tests/psyir/transformations/arrayassignment2loops_trans_test.py
Outdated
Show resolved
Hide resolved
src/psyclone/tests/psyir/transformations/arrayassignment2loops_trans_test.py
Show resolved
Hide resolved
src/psyclone/tests/psyir/transformations/arrayassignment2loops_trans_test.py
Outdated
Show resolved
Hide resolved
|
@arporter this is ready for another review. I triggered the ITs. |
arporter
left a comment
There was a problem hiding this comment.
Almost there. There are a couple of bits I still don't fully understand. There's also the pesky SIR example - it would be worth checking what happens with that on master.
If it's a real problem we could just remove the part that attempts to generate SIR for the tracer-advection benchmark code.
src/psyclone/tests/psyir/transformations/arrayassignment2loops_trans_test.py
Show resolved
Hide resolved
|
@arporter This is ready for another review, I reverted and ignored the SIR problem as suggested |
arporter
left a comment
There was a problem hiding this comment.
All looks good now, thanks Sergi. Just to be on the safe side I've set the ITs going again.
Once they're done, I'll proceed to merge.
No description provided.