Support __builtin_expect_with_probability for analysis of # of loop iterations.
authorMartin Liska <mliska@suse.cz>
Thu, 4 Jul 2019 15:59:19 +0000 (17:59 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 4 Jul 2019 15:59:19 +0000 (15:59 +0000)
commitc80ab4a34c3c3761a91459755e9f632f64c99259
treebf5aeca394c04d8447ed83b34be19552a09c2721
parentee118c14f71f43a4b82c439cd4381e034bd2786a
Support __builtin_expect_with_probability for analysis of # of loop iterations.

2019-07-04  Martin Liska  <mliska@suse.cz>

* tree-ssa-loop-niter.c (get_upper_bound_based_on_builtin_expr_with_prob):
New function.
(estimate_numbers_of_iterations):
Support __builtin_expect_with_probability for analysis
of # of loop iterations.

From-SVN: r273087
gcc/ChangeLog
gcc/tree-ssa-loop-niter.c