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 target/99908] SIMD: negating logical + if_else has a suboptimal codegen. Date: Tue, 06 Apr 2021 08:04:27 +0000 [thread overview] Message-ID: <bug-99908-4-YtDAOWyu4f@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99908-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99908 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2021-04-06 Ever confirmed|0 |1 Version|unknown |11.0 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. On GIMPLE the intrinsics are opaque: <bb 2> [local count: 1073741824]: _10 = __builtin_ia32_andnotsi256 (mask_3(D), { -1, -1, -1, -1 }); _7 = VIEW_CONVERT_EXPR<vector(32) char>(_10); _4 = VIEW_CONVERT_EXPR<vector(32) char>(b_6(D)); _2 = VIEW_CONVERT_EXPR<vector(32) char>(a_5(D)); _8 = __builtin_ia32_pblendvb256 (_2, _4, _7); _9 = VIEW_CONVERT_EXPR<__m256i>(_8); return _9; and on RTL the blend is an UNSPEC: (insn 14 13 15 2 (set (reg:V32QI 93) (unspec:V32QI [ (reg:V32QI 94) (reg:V32QI 95) (reg:V32QI 96) ] UNSPEC_BLENDV)) "include/avx2intrin.h":209:20 -1 (nil)) that makes it a target missed optimization.
next prev parent reply other threads:[~2021-04-06 8:04 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-04 12:30 [Bug c++/99908] New: Arm optimisation generates a `not` instruction instead of switching arguments of bsl denis.yaroshevskij at gmail dot com 2021-04-04 20:01 ` [Bug target/99908] SIMD: negating logical + if_else has a suboptimal codegen pinskia at gcc dot gnu.org 2021-04-06 8:04 ` rguenth at gcc dot gnu.org [this message] 2021-04-06 9:41 ` crazylht at gmail dot com 2021-04-07 2:12 ` crazylht at gmail dot com 2021-05-07 2:23 ` crazylht at gmail dot com 2021-05-12 11:44 ` cvs-commit at gcc dot gnu.org 2021-05-12 11:45 ` crazylht at gmail dot com 2021-05-12 12:01 ` rearnsha at gcc dot gnu.org 2021-05-12 12:04 ` rearnsha at gcc dot gnu.org 2023-08-08 1:27 ` pinskia at gcc dot gnu.org 2023-08-08 1:29 ` pinskia 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-99908-4-YtDAOWyu4f@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).