[llvm] [RISCV] Lower (select c, y, 0) -> (qc.muliadd c, y-1) (PR #190323)

Sudharsan Veeravalli via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 4 08:29:28 PDT 2026


================
@@ -99,6 +105,8 @@ def uimm10 : RISCVUImmLeafOp<10>;
 
 def uimm11 : RISCVUImmLeafOp<11>;
 
+def timm12 : TImmLeaf<XLenVT, [{return isInt<12>(Imm);}]>;
----------------
svs-quic wrote:

Thanks yeah that works.

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


More information about the llvm-commits mailing list