[llvm] [NVPTX] Enhance `mul.wide` and `mad.wide` peepholes (PR #150477)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 19:47:38 PDT 2025
================
@@ -859,7 +859,7 @@ def MULWIDEU32Imm :
def MULWIDEU32Imm32 :
BasicNVPTXInst<(outs B32:$dst), (ins B16:$a, i32imm:$b), "mul.wide.u16">;
-def SDTMulWide : SDTypeProfile<1, 2, [SDTCisSameAs<1, 2>]>;
+def SDTMulWide : SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisInt<1>, SDTCisSameAs<1, 2>]>;
def mul_wide_signed : SDNode<"NVPTXISD::MUL_WIDE_SIGNED", SDTMulWide>;
def mul_wide_unsigned : SDNode<"NVPTXISD::MUL_WIDE_UNSIGNED", SDTMulWide>;
----------------
AlexMaclean wrote:
While your here you may as well mark these nodes as commutative.
https://github.com/llvm/llvm-project/pull/150477
More information about the llvm-commits
mailing list