Skip to content

Commit 4516f96

Browse files
committed
Update testcase; update algorithm to something maybe right
1 parent cf45c2e commit 4516f96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,9 +2408,9 @@ bool SchedGroup::canAddMI(const MachineInstr &MI) const {
24082408
}
24092409

24102410
unsigned long InlineAsmMask = 0;
2411-
if (VGPR_used && !VMFMA_used && !MayLoad && !MayStore)
2411+
if (VGPR_used && !SGPR_used && !VMFMA_used && !MayLoad && !MayStore)
24122412
InlineAsmMask |= (unsigned long)SchedGroupMask::VALU;
2413-
if (SGPR_used && !MayLoad && !MayStore) //arsenm: should this have !VGPR_used?
2413+
if (SGPR_used && !MayLoad && !MayStore)
24142414
InlineAsmMask |= (unsigned long)SchedGroupMask::SALU;
24152415
if (VMFMA_used)
24162416
InlineAsmMask |= (unsigned long)SchedGroupMask::MFMA;

llvm/test/CodeGen/AMDGPU/inlineasm-sgmask.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc -O3 -mcpu=gfx942 < %s | FileCheck %s
22
; CHECK: v_add_f32_e32
33
; CHECK-NEXT: ;;#ASMSTART
4-
; CHECK-NEXT: v_add_f32_e32
4+
; CHECK-NEXT: v_mfma_f64
55
; CHECK-NEXT: ;;#ASMEND
66
; CHECK: v_add_f32_e32
77
; ModuleID = '<stdin>'

0 commit comments

Comments
 (0)