[llvm] [DAGCombiner] Share byte provider steps with AMDGPU target (PR #221959)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 06:47:16 PDT 2026
================
@@ -78,6 +75,46 @@ template <typename ISelOp> class ByteProvider {
Other.SrcOffset == SrcOffset;
}
};
+
+/// Visits both operands even once one answers, because \p Recurse may have
+/// side effects (DAGCombiner accumulates an and mask there).
+template <typename ISelOp, typename RecurseT>
----------------
arsenm wrote:
I don't understand why this is templatized, particularly ISelOp. Is this just SDNode vs. SDValue *? SDValue is the correct type
https://github.com/llvm/llvm-project/pull/221959
More information about the llvm-commits
mailing list