[llvm] 2b03efc - [AMDGPU] Use isImage. NFC. (#146677)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 06:18:45 PDT 2025


Author: Jay Foad
Date: 2025-07-02T14:18:42+01:00
New Revision: 2b03efc7fba813bb0c52b7016867f200a91c2d34

URL: https://github.com/llvm/llvm-project/commit/2b03efc7fba813bb0c52b7016867f200a91c2d34
DIFF: https://github.com/llvm/llvm-project/commit/2b03efc7fba813bb0c52b7016867f200a91c2d34.diff

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

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Removed: 
    


################################################################################
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