[llvm] [RISCV] DAG combine (mul (add x, 1), y) -> vmadd (PR #71495)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 10:27:27 PST 2023


================
@@ -12423,6 +12423,45 @@ static SDValue performXORCombine(SDNode *N, SelectionDAG &DAG,
   return combineSelectAndUseCommutative(N, DAG, /*AllOnes*/ false, Subtarget);
 }
 
+static SDValue performMULCombine(SDNode *N, SelectionDAG &DAG,
+                                 const RISCVSubtarget &Subtarget) {
----------------
mshockwave wrote:

I don't think `Subtarget` is used, you can omit it.

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


More information about the llvm-commits mailing list