aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-08-23 08:02:33 +0200
committerAldy Hernandez <aldyh@redhat.com>2022-08-26 18:12:37 +0200
commit79db991ece4bf9a63d13c3bce0ed974f3ef859c7 (patch)
treedd2473cbaf550791623e9a27876b7ec43f24ae42
parent1c0288065b8184e0051d846b0940027b97ea0eb4 (diff)
downloadgcc-79db991ece4bf9a63d13c3bce0ed974f3ef859c7.zip
gcc-79db991ece4bf9a63d13c3bce0ed974f3ef859c7.tar.gz
gcc-79db991ece4bf9a63d13c3bce0ed974f3ef859c7.tar.bz2
Add newline when checking path profitability.
It looks like we're missing a newline for cases where we don't print anything. gcc/ChangeLog: * tree-ssa-threadbackward.cc (possibly_profitable_path_p): Always add newline. (profitable_path_p): Same.
-rw-r--r--gcc/tree-ssa-threadbackward.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/tree-ssa-threadbackward.cc b/gcc/tree-ssa-threadbackward.cc
index 3218ad9..9725f50 100644
--- a/gcc/tree-ssa-threadbackward.cc
+++ b/gcc/tree-ssa-threadbackward.cc
@@ -719,7 +719,11 @@ back_threader_profitability::possibly_profitable_path_p
gimple *stmt = gsi_stmt (gsi);
if (gimple_call_internal_p (stmt, IFN_UNIQUE)
|| gimple_call_builtin_p (stmt, BUILT_IN_CONSTANT_P))
- return false;
+ {
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fputc ('\n', dump_file);
+ return false;
+ }
/* Do not count empty statements and labels. */
if (gimple_code (stmt) != GIMPLE_NOP
&& !is_gimple_debug (stmt))
@@ -821,6 +825,8 @@ back_threader_profitability::possibly_profitable_path_p
&& (m_n_insns * param_fsm_scale_path_stmts
>= param_max_jump_thread_duplication_stmts));
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fputc ('\n', dump_file);
return true;
}
@@ -947,6 +953,8 @@ back_threader_profitability::profitable_path_p (const vec<basic_block> &m_path,
"non-empty latch\n");
return false;
}
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fputc ('\n', dump_file);
return true;
}