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/7270] Redundant compares not eliminated on x86.


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |SUSPENDED


------- Additional Comments From pinskia@physics.uc.edu  2003-06-05 02:29 -------
This still exists on the tree-ssa branch it converts the function to
foo (a)
{
  unsigned int T.1;
  unsigned int * T.2;
  unsigned int * T.3;
  unsigned int T.4;

  {
    unsigned int i;

    while (1)
      {
        T.3 = a;
        T.4 = *T.3;
        if (T.4 == 0)
          {
            return 9;
          }
        else
          {
            return 15;
          }
      }
  }
}

So it looks like it is really fixed on the tree-ssa branch (it gets rid of the loop also).




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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