Skip to content

Commit 4a5a041

Browse files
committed
fix misunderstanding
1 parent 5beaf42 commit 4a5a041

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,8 +2456,7 @@ bool SIInsertWaitcnts::isPreheaderToFlush(
24562456
bool SIInsertWaitcnts::isVMEMOrFlatVMEM(const MachineInstr &MI) const {
24572457
if (SIInstrInfo::isFLAT(MI))
24582458
return mayAccessVMEMThroughFlat(MI);
2459-
return SIInstrInfo::isMUBUF(MI) || SIInstrInfo::isMTBUF(MI) ||
2460-
SIInstrInfo::isImage(MI);
2459+
return SIInstrInfo::isVMEM(MI);
24612460
}
24622461

24632462
// Return true if it is better to flush the vmcnt counter in the preheader of

0 commit comments

Comments
 (0)