public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110450] [14 Regression] Dead Code Elimination Regression at -O2 since r14-261-g0ef3756adf0 Date: Sat, 01 Jul 2023 20:51:49 +0000 [thread overview] Message-ID: <bug-110450-4-E8yiV05dlf@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-110450-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110450 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2023-07-01 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In VRP: trunk: ``` Folding statement: _11 = _9 % 11; Matching expression match.pd:2480, gimple-match-4.cc:35 Matching expression match.pd:2483, gimple-match-3.cc:66 Matching expression match.pd:2490, gimple-match-2.cc:58 Matching expression match.pd:1991, gimple-match-5.cc:23 Matching expression match.pd:2480, gimple-match-4.cc:35 Matching expression match.pd:2483, gimple-match-3.cc:66 Matching expression match.pd:2490, gimple-match-2.cc:58 Matching expression match.pd:1948, gimple-match-7.cc:20 Matching expression match.pd:2480, gimple-match-4.cc:35 Matching expression match.pd:2483, gimple-match-3.cc:66 Matching expression match.pd:2490, gimple-match-2.cc:58 Applying pattern match.pd:5319, gimple-match-8.cc:2688 Applying pattern match.pd:6000, gimple-match-10.cc:587 Applying pattern match.pd:2102, gimple-match-1.cc:6289 Applying pattern match.pd:6000, gimple-match-10.cc:587 Applying pattern match.pd:5284, gimple-match-4.cc:1099 Applying pattern match.pd:1378, gimple-match-3.cc:7680 Applying pattern match.pd:4720, gimple-match-1.cc:16033 gimple_simplified to _14 = a.1_2 <= 0; _15 = (int) _14; _11 = _15 << 3; Global Exported: _11 = [irange] int [0, 0][8, 8] NONZERO 0x8 Folded into: _11 = _15 << 3; ``` And the relationship between _5 and _11 is completely lost. while in GCC 13: ``` Folding statement: _11 = _9 % 11; Global Exported: _11 = [irange] int [0, 0][8, 8] NONZERO 0x8 Folded into: _11 = _9; ``` And then we remove the __builtin_unreachable even though we infer that _5 would be 0 and therefore _11 would never be 8 .
next prev parent reply other threads:[~2023-07-01 20:51 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-06-28 10:21 [Bug tree-optimization/110450] New: " theodort at inf dot ethz.ch 2023-06-29 6:52 ` [Bug tree-optimization/110450] " rguenth at gcc dot gnu.org 2023-07-01 20:51 ` pinskia at gcc dot gnu.org [this message] 2023-11-24 4:01 ` pinskia at gcc dot gnu.org 2024-01-10 15:13 ` jamborm at gcc dot gnu.org 2024-01-11 0:56 ` pinskia at gcc dot gnu.org 2024-01-13 4:39 ` cvs-commit at gcc dot gnu.org 2024-01-13 4:40 ` 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-110450-4-E8yiV05dlf@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).