[llvm] [AMDGPU] Do not put memory instructions in *ALU SchedGroups (PR #162560)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 18:48:34 PDT 2025
================
@@ -2394,15 +2394,18 @@ bool SchedGroup::canAddMI(const MachineInstr &MI) const {
else if (((SGMask & SchedGroupMask::ALU) != SchedGroupMask::NONE) &&
(TII->isVALU(MI) || TII->isMFMAorWMMA(MI) || TII->isSALU(MI) ||
TII->isTRANS(MI)))
- Result = true;
+ Result = !MI.mayLoadOrStore();
else if (((SGMask & SchedGroupMask::VALU) != SchedGroupMask::NONE) &&
TII->isVALU(MI) && !TII->isMFMAorWMMA(MI) && !TII->isTRANS(MI))
- Result = true;
+ // Some memory instructions may be marked as VALU (e.g. BUFFER_LOAD_*_LDS).
----------------
arsenm wrote:
Braces
https://github.com/llvm/llvm-project/pull/162560
More information about the llvm-commits
mailing list