diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/value-prof.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b4b8f74..134db04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2016-07-13 Andi Kleen <ak@linux.intel.com> + * value-prof.c (gimple_value_profile_transformations): Don't run + when auto_profile is on. + +2016-07-13 Andi Kleen <ak@linux.intel.com> + * auto-profile.c (update_inlined_ind_target, afdo_indirect_call): Print information to dump file. diff --git a/gcc/value-prof.c b/gcc/value-prof.c index f9574b6..2976a86 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -645,6 +645,12 @@ gimple_value_profile_transformations (void) basic_block bb; gimple_stmt_iterator gsi; bool changed = false; + + /* Autofdo does its own transformations for indirect calls, + and otherwise does not support value profiling. */ + if (flag_auto_profile) + return false; + FOR_EACH_BB_FN (bb, cfun) { for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) |