[llvm] [DAGCombiner, NVPTX] Port 'rem' custom combine from NVPTX to generic combiner (PR #167147)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 8 08:49:44 PST 2025
================
@@ -900,6 +900,41 @@ namespace {
ISD::NodeType ExtType);
};
+/// Generic remainder optimization : Folds a remainder operation (A % B) by reusing the computed quotient (A / B).
+static SDValue PerformREMCombineGeneric(SDNode *N, DAGCombiner &DC,
----------------
arsenm wrote:
Passing in DAGCombiner is strange, pass in the DAG and TLI, or just move to be a DAGCombiner member?
https://github.com/llvm/llvm-project/pull/167147
More information about the llvm-commits
mailing list