Fix maybe_hot_frequency_p

2017-11-11 Thread Jan Hubicka
Hi, while converting maybe_hot_frequency_p to profile_counts I did not notice that it has its own function argument. This patch prevents ICE with -fdump-tree-ipa-all-details-blocks. Comitted as obvious. Honza * predict.c (maybe_hot_frequency_p): Do not use cfun. Index: predict.c ===

Fix maybe_hot_frequency_p

2016-05-29 Thread Jan Hubicka
Hi, this patch makes maybe_hot_frequency_p to use multiplication instead of division. This eliminates roundoff errors that are quite serious in this case: HOT_BB_FREQUENCY_FRACTION is 1000 while frequencies are scaled from 0...1. If there is loop in function then most likely no BB is consider