From d3ed5b56646511a52db9992f4024969bfc9a13f9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 16 Jul 2019 10:12:05 +0200 Subject: [PATCH] PR91176: Skip debug insns when computing inline costs Apply Honza's fix for an aarch64-linux-gnu bootstrap failure. 2019-07-16 Jan Hubicka gcc/ PR bootstrap/91176 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts From-SVN: r273507 --- gcc/ChangeLog | 5 +++++ gcc/ipa-fnsummary.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ab87dad279..82a8f0b199f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-16 Jan Hubicka + + PR bootstrap/91176 + * ipa-fnsummary.c (analyze_function_body): Skip debug stmts + 2019-07-15 Segher Boessenkool PR target/91050 diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 78eb8cb6f50..fe125aca62c 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -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); -- 2.30.2