[llvm] VPlan/PatternMatch: introduce m_c_Mul (PR #93950)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 02:04:11 PDT 2024


================
@@ -284,11 +290,10 @@ m_BinaryOr(const Op0_t &Op0, const Op1_t &Op1) {
   return m_Binary<Instruction::Or, Op0_t, Op1_t, Commutative>(Op0, Op1);
 }
 
-template <typename Op0_t, typename Op1_t>
-inline AllBinaryRecipe_match<Op0_t, Op1_t, Instruction::Or,
-                             /*Commutative*/ true>
+template <typename Op0_t, typename Op1_t, bool Commutative = true>
+inline AllBinaryRecipe_match<Op0_t, Op1_t, Instruction::Or, Commutative>
----------------
fhahn wrote:

change unrelated to adding `m_c_Mul`?

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


More information about the llvm-commits mailing list