public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/rguenth/heads/vect-force-slp)] Amend --param vect-force-slp checking
Date: Fri, 23 Feb 2024 12:01:08 +0000 (GMT)	[thread overview]
Message-ID: <20240223120108.43214385828E@sourceware.org> (raw)

https://gcc.gnu.org/g:c917156dc46220d47d491a348a2a813baf908065

commit c917156dc46220d47d491a348a2a813baf908065
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Feb 23 12:39:57 2024 +0100

    Amend --param vect-force-slp checking
    
    This makes sure no non-SLP code-gen happens.
    
            * tree-vect-stmts.cc (vect_transform_stmt): Assert no
            non-SLP code-gen happens with --param vect-force-slp=1.

Diff:
---
 gcc/tree-vect-stmts.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 576db3196a79..ba3871a819fc 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -13336,6 +13336,8 @@ vect_transform_stmt (vec_info *vinfo,
 
   gcc_assert (slp_node || !PURE_SLP_STMT (stmt_info));
 
+  gcc_assert (!param_vect_force_slp || slp_node);
+
   tree saved_vectype = STMT_VINFO_VECTYPE (stmt_info);
   if (slp_node)
     STMT_VINFO_VECTYPE (stmt_info) = SLP_TREE_VECTYPE (slp_node);

             reply	other threads:[~2024-02-23 12:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23 12:01 Richard Biener [this message]
2024-05-13 14:27 Richard Biener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240223120108.43214385828E@sourceware.org \
    --to=rguenth@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).