summaryrefslogtreecommitdiff
path: root/gcc/tree-scalar-evolution.c
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-16 09:23:47 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-16 09:23:47 +0000
commitd70b714028b62982297ee5ebf8bfe6a572dc7fa3 (patch)
treec6ec91fdfc430d89a06adc96347bcc046d26dc01 /gcc/tree-scalar-evolution.c
parent907743e7d7bb1375e88adb52d7656438fa135de4 (diff)
downloadgcc-d70b714028b62982297ee5ebf8bfe6a572dc7fa3.tar.gz
Add SCEV cprop dumping.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198963 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r--gcc/tree-scalar-evolution.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c
index de2d7d853a5..c7e9d4b46cd 100644
--- a/gcc/tree-scalar-evolution.c
+++ b/gcc/tree-scalar-evolution.c
@@ -3385,12 +3385,24 @@ scev_const_prop (void)
to be turned into n %= 45. */
|| expression_expensive_p (def))
{
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ {
+ fprintf (dump_file, "not replacing:\n ");
+ print_gimple_stmt (dump_file, phi, 0, 0);
+ fprintf (dump_file, "\n");
+ }
gsi_next (&psi);
continue;
}
/* Eliminate the PHI node and replace it by a computation outside
the loop. */
+ if (dump_file)
+ {
+ fprintf (dump_file, "\nfinal value replacement:\n ");
+ print_gimple_stmt (dump_file, phi, 0, 0);
+ fprintf (dump_file, " with\n ");
+ }
def = unshare_expr (def);
remove_phi_node (&psi, false);
@@ -3398,6 +3410,11 @@ scev_const_prop (void)
true, GSI_SAME_STMT);
ass = gimple_build_assign (rslt, def);
gsi_insert_before (&bsi, ass, GSI_SAME_STMT);
+ if (dump_file)
+ {
+ print_gimple_stmt (dump_file, ass, 0, 0);
+ fprintf (dump_file, "\n");
+ }
}
}
return 0;