[AMDGPU] Use isImage. NFC. (#146677)

This commit is contained in:
Jay Foad
2025-07-02 14:18:42 +01:00
committed by GitHub
parent dbe441e716
commit 2b03efc7fb

View File

@@ -197,8 +197,7 @@ static bool isNormalMode(InstCounterType MaxCounter) {
VmemType getVmemType(const MachineInstr &Inst) {
assert(updateVMCntOnly(Inst));
if (!SIInstrInfo::isMIMG(Inst) && !SIInstrInfo::isVIMAGE(Inst) &&
!SIInstrInfo::isVSAMPLE(Inst))
if (!SIInstrInfo::isImage(Inst))
return VMEM_NOSAMPLER;
const AMDGPU::MIMGInfo *Info = AMDGPU::getMIMGInfo(Inst.getOpcode());
const AMDGPU::MIMGBaseOpcodeInfo *BaseInfo =