Commit d3ed5b56 by Jan Hubicka Committed by Richard Sandiford

PR91176: Skip debug insns when computing inline costs

Apply Honza's fix for an aarch64-linux-gnu bootstrap failure.

2019-07-16  Jan Hubicka  <hubicka@ucw.cz>

gcc/
	PR bootstrap/91176
	* ipa-fnsummary.c (analyze_function_body): Skip debug stmts

From-SVN: r273507
parent 42b593d5
2019-07-16 Jan Hubicka <hubicka@ucw.cz>
PR bootstrap/91176
* ipa-fnsummary.c (analyze_function_body): Skip debug stmts
2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
PR target/91050
......
......@@ -2078,8 +2078,8 @@ analyze_function_body (struct cgraph_node *node, bool early)
fix_builtin_expect_stmt = find_foldable_builtin_expect (bb);
for (gimple_stmt_iterator bsi = gsi_start_bb (bb); !gsi_end_p (bsi);
gsi_next (&bsi))
for (gimple_stmt_iterator bsi = gsi_start_nondebug_bb (bb);
!gsi_end_p (bsi); gsi_next_nondebug (&bsi))
{
gimple *stmt = gsi_stmt (bsi);
int this_size = estimate_num_insns (stmt, &eni_size_weights);
......
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