public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64700] New: Sink common code through PHI Date: Tue, 20 Jan 2015 22:01:00 -0000 [thread overview] Message-ID: <bug-64700-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64700 Bug ID: 64700 Summary: Sink common code through PHI Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: law at redhat dot com Created attachment 34507 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34507&action=edit Testcode Originally from BZ 64081.... We do miss some interesting kind of optimization opportunities like transforming if (prephitmp_87 == 1) goto <bb 9>; else goto <bb 10>; <bb 9>: _24 = arr1.5_23 + _62; pos.6_25 = *_24; goto <bb 11>; <bb 10>: _28 = arr2.7_27 + _62; pos.8_29 = *_28; <bb 11>: # prephitmp_89 = PHI <pos.6_25(9), pos.8_29(10)> to if (prephitmp_87 == 1) goto <bb 9>; else goto <bb 11>; <bb 9>: goto <bb 11>; <bb 11>: # _24 = PHI <arr1.5_23, arr2.7_27> _28 = _24 + _62; prephitmp_89 = *_28; sinking common computations through a PHI. With the followup optimization in out-of-SSA to coalesce arr1.5_23 and arr2.7_27 which means we can drop the conditional entirely.
next reply other threads:[~2015-01-20 22:01 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-01-20 22:01 law at redhat dot com [this message] 2015-01-21 9:43 ` [Bug tree-optimization/64700] " rguenth at gcc dot gnu.org 2015-01-21 20:42 ` law at redhat dot com 2021-07-20 2:52 ` pinskia at gcc dot gnu.org 2023-05-08 7:38 ` cvs-commit at gcc dot gnu.org 2023-05-08 7:40 ` pinskia at gcc dot gnu.org 2023-05-15 0:27 ` 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-64700-4@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).