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 r13-1883] Avoid vect_get_vector_types_for_stmt Date: Fri, 29 Jul 2022 06:29:47 +0000 (GMT) [thread overview] Message-ID: <20220729062947.547E438515CB@sourceware.org> (raw) https://gcc.gnu.org/g:b234f5240cafe63c124a8457015aa0447d6db525 commit r13-1883-gb234f5240cafe63c124a8457015aa0447d6db525 Author: Richard Biener <rguenther@suse.de> Date: Thu Jul 28 15:08:23 2022 +0200 Avoid vect_get_vector_types_for_stmt This replaces vect_get_vector_types_for_stmt with get_vectype_for_scalar_type in vect_recog_bool_pattern. * tree-vect-patterns.cc (vect_recog_bool_pattern): Use get_vectype_for_scalar_type instead of vect_get_vector_types_for_stmt. Diff: --- gcc/tree-vect-patterns.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/tree-vect-patterns.cc b/gcc/tree-vect-patterns.cc index dfbfb71b3c6..09574bb1a26 100644 --- a/gcc/tree-vect-patterns.cc +++ b/gcc/tree-vect-patterns.cc @@ -4509,10 +4509,8 @@ vect_recog_bool_pattern (vec_info *vinfo, && STMT_VINFO_DATA_REF (stmt_vinfo)) { stmt_vec_info pattern_stmt_info; - tree nunits_vectype; - if (!vect_get_vector_types_for_stmt (vinfo, stmt_vinfo, &vectype, - &nunits_vectype) - || !VECTOR_MODE_P (TYPE_MODE (vectype))) + vectype = get_vectype_for_scalar_type (vinfo, TREE_TYPE (lhs)); + if (!vectype || !VECTOR_MODE_P (TYPE_MODE (vectype))) return NULL; if (check_bool_pattern (var, vinfo, bool_stmts))
reply other threads:[~2022-07-29 6:29 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220729062947.547E438515CB@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: linkBe 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).