diff options
Diffstat (limited to 'gcc/auto-profile.c')
-rw-r--r-- | gcc/auto-profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 6aca2f2..c5e9f13 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -1628,7 +1628,8 @@ auto_profile (void) function before annotation, so the profile inside bar@loc_foo2 will be useful. */ autofdo::stmt_set promoted_stmts; - for (int i = 0; i < param_early_inliner_max_iterations; i++) + for (int i = 0; i < opt_for_fn (node->decl, + param_early_inliner_max_iterations); i++) { if (!flag_value_profile_transformations || !autofdo::afdo_vpt_for_early_inline (&promoted_stmts)) |