aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-10-08 12:29:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-10-08 12:29:51 +0000
commit269ba95042e9fa35f6fa4c8270339bb932e8f7e9 (patch)
tree3350b6f9558f9fcc05eaac7091a9b4ad4dd106c2 /gcc/tree-vectorizer.c
parentaca0dcde1ff2b81eb6335bdf2e8ae73f7519c99a (diff)
downloadgcc-269ba95042e9fa35f6fa4c8270339bb932e8f7e9.zip
gcc-269ba95042e9fa35f6fa4c8270339bb932e8f7e9.tar.gz
gcc-269ba95042e9fa35f6fa4c8270339bb932e8f7e9.tar.bz2
tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Open a dump scope.
2018-10-08 Richard Biener <rguenther@suse.de> * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Open a dump scope. * tree-vectorizer.c (dump_stmt_cost): Add cost param and dump it. * tree-vectorizer.h (dump_stmt_cost): Adjust. (add_stmt_cost): Dump return value of the hook. From-SVN: r264923
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r--gcc/tree-vectorizer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
index 747fb67..0ab366b 100644
--- a/gcc/tree-vectorizer.c
+++ b/gcc/tree-vectorizer.c
@@ -89,7 +89,7 @@ dump_user_location_t vect_location;
void
dump_stmt_cost (FILE *f, void *data, int count, enum vect_cost_for_stmt kind,
- stmt_vec_info stmt_info, int misalign,
+ stmt_vec_info stmt_info, int misalign, unsigned cost,
enum vect_cost_model_location where)
{
fprintf (f, "%p ", data);
@@ -159,6 +159,7 @@ dump_stmt_cost (FILE *f, void *data, int count, enum vect_cost_for_stmt kind,
fprintf (f, "%s ", ks);
if (kind == unaligned_load || kind == unaligned_store)
fprintf (f, "(misalign %d) ", misalign);
+ fprintf (f, "costs %u ", cost);
const char *ws = "unknown";
switch (where)
{