public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102659] -O2 vectorization if-conversion produces wrong code for gcc.dg/torture/pr69760.c Date: Wed, 13 Oct 2021 11:11:33 +0000 [thread overview] Message-ID: <bug-102659-4-BTLAUUxiha@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-102659-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102659 --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>: https://gcc.gnu.org/g:3c0194d7ff21d61c02f3c6b111c83ef24a69e1f0 commit r12-4369-g3c0194d7ff21d61c02f3c6b111c83ef24a69e1f0 Author: Richard Biener <rguenther@suse.de> Date: Mon Oct 11 12:27:10 2021 +0200 tree-optimization/102659 - avoid undefined overflow after if-conversion The following makes sure to rewrite arithmetic with undefined behavior on overflow to a well-defined variant when moving them to be always executed as part of doing if-conversion for loop vectorization. 2021-10-11 Richard Biener <rguenther@suse.de> PR tree-optimization/102659 * tree-if-conv.c (need_to_rewrite_undefined): New flag. (if_convertible_gimple_assign_stmt_p): Mark the loop for rewrite when stmts with undefined behavior on integer overflow appear. (combine_blocks): Predicate also when we need to rewrite stmts. (predicate_statements): Rewrite affected stmts to something with well-defined behavior on overflow. (tree_if_conversion): Initialize need_to_rewrite_undefined. * gcc.dg/torture/pr69760.c: Adjust the testcase. * gcc.target/i386/avx2-vect-mask-store-move1.c: Expect to move the conversions to unsigned as well.
next prev parent reply other threads:[~2021-10-13 11:11 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-09 4:54 [Bug debug/102659] New: [false diagnosis] extra warning info after O2 vectorization " crazylht at gmail dot com 2021-10-11 8:55 ` [Bug tree-optimization/102659] -O2 vectorization if-conversion produces wrong code " rguenth at gcc dot gnu.org 2021-10-11 8:57 ` rguenth at gcc dot gnu.org 2021-10-11 8:58 ` rguenth at gcc dot gnu.org 2021-10-11 10:31 ` rguenth at gcc dot gnu.org 2021-10-13 11:11 ` cvs-commit at gcc dot gnu.org [this message] 2021-10-13 11:12 ` rguenth at gcc dot gnu.org 2021-10-14 12:58 ` cvs-commit 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-102659-4-BTLAUUxiha@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).