statements that are not vectorized.
* tree-vect-stmts.c (vect_get_load_cost): Update the value stored
in INSIDE_COST.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161827
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-07-05 Ira Rosen <irar@il.ibm.com>
+
+ * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
+ statements that are not vectorized.
+ * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
+ in INSIDE_COST.
+
2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
PR bootstrap/44820
2010-07-05 Ira Rosen <irar@il.ibm.com>
+ * gcc.dg/vect/costmodel/i386/costmodel-fast-math-vect-pr29925.c:
+ Increase loop bound and array size.
+ * gcc.dg/vect/costmodel/x86_64/costmodel-fast-math-vect-pr29925.c:
+ Likewise.
+
+2010-07-05 Ira Rosen <irar@il.ibm.com>
+
* gcc.dg/vect/costmodel/ppc/costmodel-vect-31d.c: Remove.
* gcc.dg/vect/costmodel/ppc/costmodel-vect-76a.c: Increase loop bound.
* gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c: Likewise.
for (i=0;i<len;i++)
{
float tmp = 0;
- for (k=0;k<7;k++)
+ for (k=0;k<12;k++)
{
tmp += exc[i-pitch+k+maxj-6];
}
int main()
{
- float *exc = calloc(126,sizeof(float));
+ float *exc = calloc(136,sizeof(float));
float *interp = calloc(80,sizeof(float));
int pitch = -35;
for (i=0;i<len;i++)
{
float tmp = 0;
- for (k=0;k<7;k++)
+ for (k=0;k<12;k++)
{
tmp += exc[i-pitch+k+maxj-6];
}
int main()
{
- float *exc = calloc(126,sizeof(float));
+ float *exc = calloc(136,sizeof(float));
float *interp = calloc(80,sizeof(float));
int pitch = -35;
for (si = gsi_start_bb (bb); !gsi_end_p (si); gsi_next (&si))
{
gimple stmt = gsi_stmt (si);
+ stmt_vec_info stmt_info = vinfo_for_stmt (stmt);
if (!is_gimple_assign (stmt) && !is_gimple_call (stmt))
continue;
+ /* Skip stmts that are not vectorized inside the loop. */
+ if (stmt_info
+ && !STMT_VINFO_RELEVANT_P (stmt_info)
+ && (!STMT_VINFO_LIVE_P (stmt_info)
+ || STMT_VINFO_DEF_TYPE (stmt_info) != vect_reduction_def))
+ continue;
+
if (STMT_VINFO_DATA_REF (vinfo_for_stmt (stmt)))
{
if (DR_IS_READ (STMT_VINFO_DATA_REF (vinfo_for_stmt (stmt))))
{
case dr_aligned:
{
- inside_cost += ncopies * vect_get_stmt_cost (vector_load);
+ *inside_cost += ncopies * vect_get_stmt_cost (vector_load);
if (vect_print_dump_info (REPORT_COST))
fprintf (vect_dump, "vect_model_load_cost: aligned.");