* tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
allocate and free bbs array for the SLP case.
From-SVN: r188657
2012-06-15 Jakub Jelinek <jakub@redhat.com>
+ * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
+ allocate and free bbs array for the SLP case.
+
PR tree-optimization/51581
* expr.h (choose_multiplier): New prototype.
* expmed.c (choose_multiplier): No longer static.
vect_pattern_recog (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo)
{
struct loop *loop;
- basic_block *bbs, bb;
+ basic_block *bbs;
unsigned int nbbs;
gimple_stmt_iterator si;
unsigned int i, j;
}
else
{
- bb = BB_VINFO_BB (bb_vinfo);
+ bbs = &BB_VINFO_BB (bb_vinfo);
nbbs = 1;
- bbs = XNEW (basic_block);
- bbs[0] = bb;
}
/* Scan through the loop stmts, applying the pattern recognition
}
VEC_free (gimple, heap, stmts_to_replace);
- if (bb_vinfo)
- free (bbs);
}