File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2394,18 +2394,18 @@ bool SchedGroup::canAddMI(const MachineInstr &MI) const {
23942394 else if (((SGMask & SchedGroupMask::ALU) != SchedGroupMask::NONE) &&
23952395 (TII->isVALU (MI) || TII->isMFMAorWMMA (MI) || TII->isSALU (MI) ||
23962396 TII->isTRANS (MI)))
2397- Result = !(MI.mayLoad () || MI.mayLoad ());
2397+ Result = !(MI.mayLoad () || MI.mayStore ());
23982398
23992399 else if (((SGMask & SchedGroupMask::VALU) != SchedGroupMask::NONE) &&
24002400 TII->isVALU (MI) && !TII->isMFMAorWMMA (MI) && !TII->isTRANS (MI))
24012401 // Some memory instructions may be marked as VALU (e.g. BUFFER_LOAD_*_LDS).
24022402 // For our purposes, these shall not be classified as VALU as this results
24032403 // in unexpected behavior.
2404- Result = !(MI.mayLoad () || MI.mayLoad ());
2404+ Result = !(MI.mayLoad () || MI.mayStore ());
24052405
24062406 else if (((SGMask & SchedGroupMask::SALU) != SchedGroupMask::NONE) &&
24072407 TII->isSALU (MI))
2408- Result = !(MI.mayLoad () || MI.mayLoad ());
2408+ Result = !(MI.mayLoad () || MI.mayStore ());
24092409
24102410 else if (((SGMask & SchedGroupMask::MFMA) != SchedGroupMask::NONE) &&
24112411 TII->isMFMAorWMMA (MI))
You can’t perform that action at this time.
0 commit comments