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

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 05:23:55 PDT 2025


https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/146677

None

>From 6a7e29b827bb68007e3f96c9856506719f24e9e2 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Wed, 2 Jul 2025 11:34:13 +0100
Subject: [PATCH] [AMDGPU] Use isImage. NFC.

---
 llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 6414e81baae70..571a31f465763 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -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 =



More information about the llvm-commits mailing list