This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/14847] [tree-ssa] combine "if (a & 1) goto there" and "if (a & 4) goto there"


------- Additional Comments From kazu at cs dot umass dot edu  2004-04-04 16:52 -------
Convert foo() to baz().

void bar (void);

void
foo (unsigned int a)
{
  if (a & 1)
    goto heaven;
  if (a & 4)
    goto heaven;
  return;

 heaven:
  bar ();
}

void
baz (unsigned int a)
{
  if (a & 5)
    goto heaven;
  return;

 heaven:
  bar ();
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pessimizes-code
            Summary|[tree-ssa                   |[tree-ssa] combine "if (a &
                   |                            |1) goto there" and "if (a &
                   |                            |4) goto there"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]