From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by sourceware.org (Postfix) with ESMTPS id A11F63858D1E for ; Wed, 19 Apr 2023 09:35:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A11F63858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-xe30.google.com with SMTP id u12so1977359vst.11 for ; Wed, 19 Apr 2023 02:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681896901; x=1684488901; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cFxVY3od7OZSBYb4bPbx1Nl6Q0uGLxgoK7f0UkdEdso=; b=oVtVpL9C7L4dGuyzWMoRnz+Me/RXmJDcDr/ZXYzKCLUJZUaP0Sj2h8/Vz2sGElAtgG 5rWCgB/lfQYZnebl4YZlW2CzMhmXg82TIEVq4VgOlQlsI8/Q4MOLhQzgoVb9oXA0H92w qsh4UmxoSOt8mHAoxEmhId8Ord62ZXBsoTLhX2k10udz4f8ZICCSERKaO8vppfwSJBeg oznmYDDYkr2gn3ldq/ddTUO+WUtdSZuopeCmXyKenU2M+cmBGfR1eVPsucrSxHTeqGCh sp+035WS6HOdkjuDhLFiWMg1Ps7xZJbTa+8yLJj+PFTq3MdWdr13HN7ZzJVertAO1yPd 6AiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681896901; x=1684488901; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cFxVY3od7OZSBYb4bPbx1Nl6Q0uGLxgoK7f0UkdEdso=; b=Mpsw7oTmf3a5V312epulCotiSCF6AKkip+8tJCbNAZlMFFXw8P598hoe32go1WKJqH WcEju/OsI7eGBGWqFQzuX8XMFxmaccah8+jtnLIZhPU/pOUP4QHhILA/abt5Gm/QmedW 61980ftTZ465j4BOs0ZXVVHfRDxiafpyQsrpcu8+BZ0Dhoh3zTOwORTK8/oga9zdTRHK UfUFepVPy2RewVgXg6ztljykd7aMLlqg9NwqpznHIVT/jDnbk88uezqfyVRjUhOQ/5Kf 7s6S9HO5d6GnT1ncp55zDaQZbLFNMF/U++f0FszGi0f4L2xDQZT56F1HH1A+tGf4V/jJ Fh9Q== X-Gm-Message-State: AAQBX9dPBwcANE1JZp1AfMsHKAQTuq80TdRNjld+uMCNtYA1txS7ea/p tzM6kOqY15YZ9a2oGChwzyWXuZormr8LH1AWpDQ= X-Google-Smtp-Source: AKy350YrwjLPPYGgWiNkqVzjhxtUA5HZYavDwhQiOtyQmScp6e6UOm5iofmKe/BCp6qn3W3YLsnsTk+4QgU9FYBQJzQ= X-Received: by 2002:a05:6102:539:b0:42c:910d:26ee with SMTP id m25-20020a056102053900b0042c910d26eemr7912017vsa.18.1681896900694; Wed, 19 Apr 2023 02:35:00 -0700 (PDT) MIME-Version: 1.0 References: <20230419032117.930737-1-pan2.li@intel.com> In-Reply-To: From: Kito Cheng Date: Wed, 19 Apr 2023 17:34:49 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Allow VMS{Compare} (V1, V1) shortcut optimization To: "Li, Pan2" Cc: "gcc-patches@gcc.gnu.org" , "juzhe.zhong@rivai.ai" , "kito.cheng@sifive.com" , "Wang, Yanzhang" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Pan: > rtx expand (function_expander &e) const override diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index 0ecca98f20c..6819363b9ff 100644 > --- a/gcc/config/riscv/vector.md > +++ b/gcc/config/riscv/vector.md > @@ -1032,6 +1032,7 @@ (define_insn_and_split "@pred_mov" > [(match_operand:VB 1 "vector_all_trues_mask_operand" "Wc1, Wc1, Wc1, Wc1, Wc1") > (match_operand 4 "vector_length_operand" " rK, rK, rK, rK, rK") > (match_operand 5 "const_int_operand" " i, i, i, i, i") > + (match_operand 6 "const_int_operand" " i, i, i, i, i") I didn't get why having one more tail policy operand for this pattern could help? Do you mind explaining more detail about this? Thanks :)