[clang] [llvm] [AMDGPU] Fold `llvm.amdgcn.update.dpp` with a zero row or bank mask (PR #248230)

Alan Li via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 2 17:54:11 PST 2026


================
@@ -1904,6 +1904,10 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
     auto *BC = cast<ConstantInt>(II.getArgOperand(5));
     auto *RM = cast<ConstantInt>(II.getArgOperand(3));
     auto *BM = cast<ConstantInt>(II.getArgOperand(4));
----------------
lialan wrote:

Done in `fb25eca5`. The encoding keeps only the low 4 bits (`row_mask:0x10` disassembles as `row_mask:0x0`), so the full-mask check uses them too.


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


More information about the cfe-commits mailing list