From 71b91b4e4049aec2032d588093de523662bbaba3 Mon Sep 17 00:00:00 2001
From: Ajit Kumar Agarwal <ajitkum@xilix.com>
Date: Mon, 30 Nov 2015 14:21:07 +0530
Subject: [PATCH] [Patch,SLP]: Correction in the comment for SLP vectorization profitable case.

Correction in the comment for vectoriable profitable case. The comment is
contradicting the condition vec_outside_cost + vec_inside_cost > scalar_cost.

ChangeLog:
2015-11-30  Ajit Agarwal  <ajitkum@xilinx.com>

        * tree-vect-slp.c
        (vect_bb_vectorization_profitable_p): Correction in the comment.

Signed-off-by:Ajit Agarwal ajitkum@xilinx.com
---
 gcc/tree-vect-slp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index 5693ca5..241f49a 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -2392,7 +2392,7 @@ vect_bb_vectorization_profitable_p (bb_vec_info bb_vinfo)
       dump_printf (MSG_NOTE, "  Scalar cost of basic block: %d\n", scalar_cost);
     }
 
-  /* Vectorization is profitable if its cost is more than the cost of scalar
+  /* Vectorization is profitable if its cost is less than the cost of scalar
      version.  Note that we err on the vector side for equal cost because
      the cost estimate is otherwise quite pessimistic (constant uses are
      free on the scalar side but cost a load on the vector side for
-- 
1.7.1

