Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Differential
D128158
Diff 445965
llvm/test/CodeGen/AMDGPU/sched-group-barrier-pre-RA.mir
Changeset View
I think you are aware of this issue. But the ability for the mutation to match the pipeline is dependent upon which instructions go into which group (when an instruction can be mapped to multiple groups).
If we had SchedGroups: 2 VMEM_READ, 1 VALU, 1 MFMA, 2 VMEM_READ
and initial schedule: VMEMR, VALU, VMEMR, MFMA, VMEMR, with a dependency between middle VMEMR->MFMA.
initSchedGroup will add the middle VMEMR to the last VMEMR group, but we could get a more accurate pipeline by adding it to the first group.