Skip to content

Commit 9604498

Browse files
committed
Fix error-that-should-be-warning, code may or may not be correct
1 parent a24521a commit 9604498

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,6 +2410,8 @@ bool SchedGroup::canAddMI(const MachineInstr &MI) const {
24102410
unsigned long InlineAsmMask = 0;
24112411
if (VGPR_used && !VMFMA_used && !MayLoad && !MayStore)
24122412
InlineAsmMask |= (unsigned long)SchedGroupMask::VALU;
2413+
if (SGPR_used && !MayLoad && !MayStore) //arsenm: should this have !VGPR_used?
2414+
InlineAsmMask |= (unsigned long)SchedGroupMask::SALU;
24132415
if (VMFMA_used)
24142416
InlineAsmMask |= (unsigned long)SchedGroupMask::MFMA;
24152417
if (VGPR_used && MayLoad)

0 commit comments

Comments
 (0)