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 middle-end/112305] [11/12/13/14 Regression] Wrong code at -O1/2/3/s on x86_64-pc-linux-gnu Date: Tue, 31 Oct 2023 12:10:21 +0000 [thread overview] Message-ID: <bug-112305-4-dOEgzOvgO9@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-112305-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112305 --- 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:e3da1d7bb288c8c864f0284bc4bc5877b466a2f7 commit r14-5032-ge3da1d7bb288c8c864f0284bc4bc5877b466a2f7 Author: Richard Biener <rguenther@suse.de> Date: Tue Oct 31 10:13:13 2023 +0100 tree-optimization/112305 - SCEV cprop and conditional undefined overflow The following adjusts final value replacement to also rewrite the replacement to defined overflow behavior if there's conditionally evaluated stmts (with possibly undefined overflow), not only when we "folded casts". The patch hooks into expression_expensive for this. PR tree-optimization/112305 * tree-scalar-evolution.h (expression_expensive): Adjust. * tree-scalar-evolution.cc (expression_expensive): Record when we see a COND_EXPR. (final_value_replacement_loop): When the replacement contains a COND_EXPR, rewrite it to defined overflow. * tree-ssa-loop-ivopts.cc (may_eliminate_iv): Adjust. * gcc.dg/torture/pr112305.c: New testcase.
next prev parent reply other threads:[~2023-10-31 12:10 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-31 6:51 [Bug middle-end/112305] New: [13/14 " jwzeng at nuaa dot edu.cn 2023-10-31 7:00 ` [Bug middle-end/112305] " pinskia at gcc dot gnu.org 2023-10-31 7:02 ` pinskia at gcc dot gnu.org 2023-10-31 7:07 ` [Bug middle-end/112305] [11/12/13/14 " pinskia at gcc dot gnu.org 2023-10-31 7:08 ` pinskia at gcc dot gnu.org 2023-10-31 9:10 ` rguenth at gcc dot gnu.org 2023-10-31 12:10 ` cvs-commit at gcc dot gnu.org [this message] 2023-10-31 12:18 ` [Bug middle-end/112305] [11/12/13 " rguenth at gcc dot gnu.org 2024-05-21 9:18 ` jakub 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-112305-4-dOEgzOvgO9@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).