[Bug tree-optimization/26602] final_cleanup can mess up incoming frequencies

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Mar 11 05:00:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list