Commit 038ec4b7 by Andi Kleen Committed by Andi Kleen

Don't run instrumented value profiler changes with afdo

The pass to transform gimple based on value profiling runs with autofdo
on, but currently every transformation fails. For indirect calls autofdo
does it on its own, and it doesn't suppport other value profiling. So don't
run this pass when autofdo is active. This also avoids bogus
dump file entries.

gcc/:

2016-07-13  Andi Kleen  <ak@linux.intel.com>

	* value-prof.c (gimple_value_profile_transformations): Don't run
	when auto_profile is on.

From-SVN: r238321
parent 0ea221ef
2016-07-13 Andi Kleen <ak@linux.intel.com> 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, * auto-profile.c (update_inlined_ind_target,
afdo_indirect_call): Print information to dump file. afdo_indirect_call): Print information to dump file.
......
...@@ -645,6 +645,12 @@ gimple_value_profile_transformations (void) ...@@ -645,6 +645,12 @@ gimple_value_profile_transformations (void)
basic_block bb; basic_block bb;
gimple_stmt_iterator gsi; gimple_stmt_iterator gsi;
bool changed = false; 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_EACH_BB_FN (bb, cfun)
{ {
for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment