[llvm] [AMDGPU] Recognise bitmask operations as srcmods (PR #149110)

Chris Jackson via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 23:56:15 PDT 2025


================
@@ -3036,6 +3036,36 @@ bool AMDGPUDAGToDAGISel::SelectVOP3ModsImpl(SDValue In, SDValue &Src,
     Src = Src.getOperand(0);
   }
 
+  // Convert various sign-bit masks to src mods. Currently disabled for 16-bit
----------------
chrisjbris wrote:

So while your example is correct in that integer -1 isn't produced by the srcmod, that's not really the intention.

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


More information about the llvm-commits mailing list