public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rdapp at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111760] risc-v regression: COND_LEN_* incorrect fold/simplify in middle-end Date: Tue, 10 Oct 2023 21:02:53 +0000 [thread overview] Message-ID: <bug-111760-4-BITVjVtD5C@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-111760-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111760 Robin Dapp <rdapp at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rdapp at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #2 from Robin Dapp <rdapp at gcc dot gnu.org> --- https://gcc.gnu.org/pipermail/gcc-patches/2023-September/629904.html prevents the wrong code but still leaves us with a redundant negation (and it is not the only missed optimization of that kind): vect_neg_xi_14.4_23 = -vect_xi_13.3_22; vect_res_2.5_24 = .COND_LEN_ADD ({ -1, ... }, vect_res_1.0_17, vect_neg_xi_14.4_23, vect_res_1.0_17, _29, 0); That's because my "hackaround" doesn't recognize a valueized sequence _30 = vect_res_1.0_17 - vect_xi_13.3_22; Of course I could (reverse valueize) recognize that again and convert it to a COND_LEN... but that doesn't seem elegant at all. There must be a simpler way that I'm missing entirely right now. That said, converting the last statement of such a sequence should be sufficient?
next prev parent reply other threads:[~2023-10-10 21:02 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-10 14:29 [Bug c/111760] New: " juzhe.zhong at rivai dot ai 2023-10-10 17:47 ` [Bug c/111760] " pinskia at gcc dot gnu.org 2023-10-10 21:02 ` rdapp at gcc dot gnu.org [this message] 2023-10-10 21:58 ` [Bug tree-optimization/111760] " juzhe.zhong at rivai dot ai 2023-10-10 22:04 ` pinskia at gcc dot gnu.org 2023-10-10 22:08 ` juzhe.zhong at rivai dot ai 2023-10-11 6:47 ` rdapp at gcc dot gnu.org 2023-10-11 8:36 ` rguenth at gcc dot gnu.org 2023-11-06 11:27 ` cvs-commit at gcc dot gnu.org 2023-11-07 23:39 ` juzhe.zhong at rivai dot ai
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-111760-4-BITVjVtD5C@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).