Remove IterType::gatherscatter - #4131
Conversation
|
!test --diff |
Description
Changes walkthrough 📝
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
!test --diff |
|
!test --diff |
Greptile SummaryThis PR removes Confidence Score: 5/5Safe to merge — all GatherScatter references are consistently removed and no functional regressions are apparent. The removal is complete and internally consistent: the enum value, helper predicate, contiguity guards, merge logic, validation checks, and the corresponding test are all updated in lock-step. The data_type_to_aten fallback simplification is functionally identical (8-bit types without explicit switch cases still reach the else-Byte branch). No P0 or P1 issues found. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["gather() / scatter() call"] --> B["Build output IterDomains"]
B --> C_old["OLD: if IterType::Iteration\n→ set IterType::GatherScatter\nelse keep original"]
B --> C_new["NEW: cloneWithoutRFactor()\n(keeps original IterType)"]
C_old --> D_old["Output domain has\nIterType::GatherScatter"]
C_new --> D_new["Output domain has\nIterType::Iteration"]
D_old --> E_old["Contiguity check:\nskip GatherScatter domains\n(never contig)"]
D_new --> E_new["Contiguity check:\nnormal rules apply\n(can be contig)"]
D_old --> F_old["fusion_segmenter:\ndisjoint loop/logical\nrequires GatherScatter"]
D_new --> F_new["fusion_segmenter:\ndisjoint loop/logical\nallowed (no type check)"]
D_old --> G_old["ParallelType::Group:\nallowed on Iteration or GatherScatter"]
D_new --> G_new["ParallelType::Group:\nallowed on Iteration only"]
style C_old fill:#ffcccc
style D_old fill:#ffcccc
style E_old fill:#ffcccc
style F_old fill:#ffcccc
style G_old fill:#ffcccc
style C_new fill:#ccffcc
style D_new fill:#ccffcc
style E_new fill:#ccffcc
style F_new fill:#ccffcc
style G_new fill:#ccffcc
Reviews (3): Last reviewed commit: "fix" | Re-trigger Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
!test --diff |
|
!test --diff |
jjsjann123
left a comment
There was a problem hiding this comment.
blind stamp with full trust.
Just cleaning up an obsolete IterType. Nothing should depend on IterType::GatherScatter anymore.