public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101639] vectorization with bool reduction Date: Tue, 27 Jul 2021 11:21:50 +0000 [thread overview] Message-ID: <bug-101639-4-YxyKptkgqf@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101639-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101639 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |53947 Last reconfirmed| |2021-07-27 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- vectorizable_reduction fails the 6692 scalar_dest = gimple_assign_lhs (stmt); 6693 scalar_type = TREE_TYPE (scalar_dest); 6694 if (!POINTER_TYPE_P (scalar_type) && !INTEGRAL_TYPE_P (scalar_type) 6695 && !SCALAR_FLOAT_TYPE_P (scalar_type)) 6696 return false; 6697 6698 /* Do not try to vectorize bit-precision reductions. */ 6699 if (!type_has_mode_precision_p (scalar_type)) 6700 return false; check. I guess we could relax that for BIT_*_EXPR reductions. But then we run into t5.c:4:21: note: vect_is_simple_use: vectype vector(16) unsigned char t5.c:4:21: missed: mixed mask and nonmask vector types t5.c:1:6: missed: not vectorized: relevant stmt not supported: _7 = _4 & r_14; t5.c:4:21: missed: bad operation or unsupported loop bound. I guess that's mainly a fault of missed bool pattern handling of the reduction - we fail to make p[i] != 0 available as non-boolean vector. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 [Bug 53947] [meta-bug] vectorizer missed-optimizations
next prev parent reply other threads:[~2021-07-27 11:21 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-27 10:58 [Bug tree-optimization/101639] New: " glisse at gcc dot gnu.org 2021-07-27 11:21 ` rguenth at gcc dot gnu.org [this message] 2024-06-18 6:25 ` [Bug tree-optimization/101639] " rguenth at gcc dot gnu.org 2024-06-18 6:25 ` rguenth at gcc dot gnu.org
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=bug-101639-4-YxyKptkgqf@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).