aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-07-16 10:12:05 +0200
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-07-16 08:12:05 +0000
commitd3ed5b56646511a52db9992f4024969bfc9a13f9 (patch)
tree57e81d5600e4d7c9d2179b4c71a3f86cb827cb2a /gcc
parent42b593d5e0e424e42eb22290acee7160fd2d690a (diff)
downloadgcc-d3ed5b56646511a52db9992f4024969bfc9a13f9.zip
gcc-d3ed5b56646511a52db9992f4024969bfc9a13f9.tar.gz
gcc-d3ed5b56646511a52db9992f4024969bfc9a13f9.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-fnsummary.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ab87da..82a8f0b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c
index 78eb8cb..fe125ac 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);