public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14758] New: [tree-ssa] another missed forward propagation opportunity
@ 2004-03-28  1:54 kazu at cs dot umass dot edu
  2004-03-28  7:35 ` [Bug optimization/14758] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-03-28  1:54 UTC (permalink / raw)
  To: gcc-bugs

void bar (void);

void
foo (int a)
{
  a = !a;
  a = !a;
  a = !a;
  a = !a;
  a = !a;

  if (a)
    bar ();
}

Here is the last tree in SSA form:

foo (a)
{
<bb 0>:
  a_2 = a_1 == 0;
  a_3 = a_2 == 0;
  if (a_3 == 0) goto <L0>; else goto <L1>;

<L0>:;
  bar () [tail call];

<L1>:;
  return;

}

Note that a_2 and a_3 still remain.

-- 
           Summary: [tree-ssa] another missed forward propagation
                    opportunity
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: enhancement
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14758


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-14758-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-02-28  7:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-28  1:54 [Bug optimization/14758] New: [tree-ssa] another missed forward propagation opportunity kazu at cs dot umass dot edu
2004-03-28  7:35 ` [Bug optimization/14758] " pinskia at gcc dot gnu dot org
2004-03-30 20:30 ` pinskia at gcc dot gnu dot org
2004-03-30 21:31 ` pinskia at gcc dot gnu dot org
2004-03-30 21:35 ` pinskia at gcc dot gnu dot org
2004-03-31  0:02 ` dnovillo at redhat dot com
2004-03-31  0:04 ` pinskia at gcc dot gnu dot org
2004-03-31  5:36 ` pinskia at gcc dot gnu dot org
2004-05-15  6:05 ` [Bug tree-optimization/14758] " pinskia at gcc dot gnu dot org
2004-05-15 15:46 ` giovannibajo at libero dot it
     [not found] <bug-14758-4@http.gcc.gnu.org/bugzilla/>
2012-02-28  8:06 ` 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).