[Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction

rakdver at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 29 13:19:00 GMT 2005


------- Additional Comments From rakdver at gcc dot gnu dot org  2005-08-29 13:18 -------
Sorry, I have simplified the testcase and only looked at the dom1 dump.  You
need the following testcase to reproduce the problem (for the second loop):

void foo (void)
{
  int i;

  for (i = 0; i < 100; i++)
    something ();
  for (i = 0; i < 100; i++)
    something ();
}

-- 


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



More information about the Gcc-bugs mailing list