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