public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/45032] New: Missed optimization in ifcvt/crossjump @ 2010-07-22 18:52 rth at gcc dot gnu dot org 2010-07-22 20:58 ` [Bug tree-optimization/45032] " steven at gcc dot gnu dot org 2010-07-22 21:05 ` pinskia at gcc dot gnu dot org 0 siblings, 2 replies; 4+ messages in thread From: rth at gcc dot gnu dot org @ 2010-07-22 18:52 UTC (permalink / raw) To: gcc-bugs int f(int x, int y); int g(int x, int z) { int r; if (z == 0) r = f(x, 1); else r = f(x, 0); return r + 1; } could be optimized to r = f(x, (z == 0 ? 1 : 0)); which would reduce the size of the generated code, and for most targets allow further simplifications on the COND_EXPR leading to branchless assembly. -- Summary: Missed optimization in ifcvt/crossjump Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45032 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/45032] Missed optimization in ifcvt/crossjump 2010-07-22 18:52 [Bug tree-optimization/45032] New: Missed optimization in ifcvt/crossjump rth at gcc dot gnu dot org @ 2010-07-22 20:58 ` steven at gcc dot gnu dot org 2010-07-22 21:05 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 4+ messages in thread From: steven at gcc dot gnu dot org @ 2010-07-22 20:58 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from steven at gcc dot gnu dot org 2010-07-22 20:58 ------- Looks related to bug 20070. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45032 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/45032] Missed optimization in ifcvt/crossjump 2010-07-22 18:52 [Bug tree-optimization/45032] New: Missed optimization in ifcvt/crossjump rth at gcc dot gnu dot org 2010-07-22 20:58 ` [Bug tree-optimization/45032] " steven at gcc dot gnu dot org @ 2010-07-22 21:05 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2010-07-22 21:05 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2010-07-22 21:05 ------- I think this is the same as PR 13563. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45032 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <bug-45032-4@http.gcc.gnu.org/bugzilla/>]
* [Bug tree-optimization/45032] Missed optimization in ifcvt/crossjump [not found] <bug-45032-4@http.gcc.gnu.org/bugzilla/> @ 2021-08-19 5:21 ` pinskia at gcc dot gnu.org 0 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-19 5:21 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45032 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is a dup of bug 13563. *** This bug has been marked as a duplicate of bug 13563 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-19 5:21 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-07-22 18:52 [Bug tree-optimization/45032] New: Missed optimization in ifcvt/crossjump rth at gcc dot gnu dot org 2010-07-22 20:58 ` [Bug tree-optimization/45032] " steven at gcc dot gnu dot org 2010-07-22 21:05 ` pinskia at gcc dot gnu dot org [not found] <bug-45032-4@http.gcc.gnu.org/bugzilla/> 2021-08-19 5:21 ` pinskia at gcc dot gnu.org
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).