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/114253] False positive maybe-uninitialized with std::optional and ternary Date: Thu, 07 Mar 2024 03:21:36 +0000 [thread overview] Message-ID: <bug-114253-4-3S6Zk5mnil@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114253-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114253 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- ``` <bb 6> [local count: 1073741824]: # pid_16 = PHI <pid_25(4), pid_24(D)(5)> # pid$4_26 = PHI <pid$4_10(4), 0(5)> kill_pid (0); goto <bb 8>; [100.00%] <bb 7> [count: 0]: <L13>: goto <bb 15>; [100.00%] <bb 8> [local count: 1073741824]: _12 = VIEW_CONVERT_EXPR<bool>(pid$4_26); if (_12 != 0) goto <bb 9>; [33.00%] else goto <bb 16>; [67.00%] <bb 9> [local count: 354334800]: kill_pid (pid_16); goto <bb 11>; [100.00%] ``` Funny if we turn off SRA we get: ``` <bb 8> [local count: 354334800]: _2 = MEM[(int &)&pid]; kill_pid (_2); goto <bb 10>; [100.00%] <bb 9> [count: 0]: <L14>: goto <bb 14>; [100.00%] <bb 10> [local count: 536870912]: kill_pid (_2); <bb 17> [local count: 536870912]: goto <bb 12>; [100.00%] ``` (note bb9/bb17 here looks to be landing pads for EH).
prev parent reply other threads:[~2024-03-07 3:21 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-06 11:27 [Bug tree-optimization/114253] New: " overdijk at gmail dot com 2024-03-06 11:28 ` [Bug tree-optimization/114253] " overdijk at gmail dot com 2024-03-06 11:31 ` overdijk at gmail dot com 2024-03-06 11:43 ` rguenth at gcc dot gnu.org 2024-03-07 3:14 ` pinskia at gcc dot gnu.org 2024-03-07 3:21 ` pinskia at gcc dot gnu.org [this message]
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-114253-4-3S6Zk5mnil@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).