[llvm-branch-commits] [llvm] AMDGPU: Validate VOPD/VOPD3 physical source registers against operand RC (PR #196515)

Petar Avramovic via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 13 01:46:31 PDT 2026


================
@@ -73,6 +104,8 @@ bool llvm::checkVOPDRegConstraints(const SIInstrInfo &TII,
       if (!TRI->isVectorRegister(MRI, Src0.getReg())) {
         UniqueScalarRegs.insert(Src0.getReg());
       }
+      if (!isValidVOPDSrc(TII, VOPDOpc, CompIdx, 0, Src0.getReg()))
+        return false;
----------------
petar-avramovic wrote:

new check (both VOPD and VOPD3)

https://github.com/llvm/llvm-project/pull/196515


More information about the llvm-branch-commits mailing list