This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26602] final_cleanup can mess up incoming frequencies
- 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: 11 Mar 2006 05:00:44 -0000
- Subject: [Bug tree-optimization/26602] final_cleanup can mess up incoming frequencies
- References: <bug-26602-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-11 05:00 -------
Hmm, what is happening here is we fold the conditional and then update the
frequency for the next bb but not the ones after it which causes us to get the
warnings:
Invalid sum of incoming frequencies 2731, should be 2048
The numbers before the cleanup:
# BLOCK 9 freq:719
# BLOCK 3 freq:2156
After:
# BLOCK 2 freq:2875
But:
# BLOCK 6 freq:375
# BLOCK 3 freq:2048
2875-375 == 2731 != 2048
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26602