[llvm] [AMDGPU] Disable dpp src1 sgpr on gfx11 (PR #164241)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 07:11:27 PDT 2026
================
@@ -6438,6 +6438,9 @@ bool SIInstrInfo::isLegalRegOperand(const MachineInstr &MI, unsigned OpIdx,
if (Opc == AMDGPU::S_BITCMP0_B64 || Opc == AMDGPU::S_BITCMP1_B64)
return false;
}
+ if (!ST.hasDPPSrc1SGPR() && RI.isSGPRReg(MRI, MO.getReg()) && isDPP(MI) &&
----------------
arsenm wrote:
Can you add a verifier test in test/MachineVerifier/AMDGPU that this is correctly rejected
https://github.com/llvm/llvm-project/pull/164241
More information about the llvm-commits
mailing list