[llvm] SD Pattern Match: Operands patterns with VP Context (PR #103308)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 09:51:19 PDT 2024


================
@@ -668,7 +671,7 @@ template <typename Opnd_P, bool ExcludeChain = false> struct UnaryOpc_match {
   bool match(const MatchContext &Ctx, SDValue N) {
     if (sd_context_match(N, Ctx, m_Opc(Opcode))) {
       EffectiveOperands<ExcludeChain> EO(N);
-      assert(EO.Size == 1);
+      assert(EO.Size == 1U + 2 * N->isVPOpcode());
----------------
v01dXYZ wrote:

**mshockwave**: https://github.com/llvm/llvm-project/pull/102877#discussion_r1715577824

> ditto


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


More information about the llvm-commits mailing list