TransformReplay::selfReplay replays contiguity#5316
Conversation
|
!test |
|
Review updated until commit 129e9bb Description
Changes walkthrough 📝
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This reverts commit a41c05e.
|
!test |
|
!test |
|
!test |
|
!test |
|
!test |
|
!test |
|
!test |
| fusion->addInput(in); | ||
| fusion->addInput(i); | ||
| fusion->addOutput(acc_out); | ||
| fusion->aliasOutputToInput(acc_out, acc_in, AllocationType::ReuseBuffer); |
There was a problem hiding this comment.
This calls TransformReplay::selfReplay to replay transformations from concrete dimensions to symbolic dimensions.
|
!test |
|
!test |
|
It would be really helpful to have some quick PR introduction to remind the context. My mental capacity is not big enough to remember everything currently going on. |
|
Thanks @wujingyue for the clarifications. |
Done |
|
!test |
| } | ||
|
|
||
| new_self->setAllocationDomain(new_allocation, new_contiguities); | ||
| } else { |
There was a problem hiding this comment.
This feels a little unexpected to me because, even though there's nothing to replay for the allocation, the contiguity could be modified.
There was a problem hiding this comment.
What would happen if self doesn't have an allocation domain but new_self does? Would it work?
There was a problem hiding this comment.
Good catch. Added a check and a comment.
|
!test --diff |
Changes of contiguity may not cause test failures but could result in, e.g., different vectorizations. Started the diff check just in case. |
|
!test |
|
!test --diff |
Fixes bugs like #5356
We should probably add some knobs so callers decide what to replay, in a separate PR. So far, this function tries to replay everything (namely, loop, allocation and contiguity), which seems to work fine.