This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17116] Missed jump threading/bypassing optimization with loop and % (or ands)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2005 16:29:15 -0000
- Subject: [Bug tree-optimization/17116] Missed jump threading/bypassing optimization with loop and % (or ands)
- References: <20040820071233.17116.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-01 16:29 -------
We now get:
main ()
{
int i.8;
int i;
<bb 0>:
Invalid sum of outgoing probabilities 0.0%
i = 0;
i.8 = i + 1;
Invalid sum of outgoing probabilities 98.9%
<L0>:;
if ((i.8 & 1) != 0) goto <L1>; else goto <L10>;
<L1>:;
puts (&"hello"[0]);
Invalid sum of incoming frequencies 9813, should be 10000
<L10>:;
i.8 = i.8 + 1;
if (i.8 != 90) goto <L0>; else goto <L4>;
<L4>:;
return;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17116