This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2005 13:18:27 -0000
- Subject: [Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction
- References: <20050829115425.23622.rakdver@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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