Commit 772e61e1 by Jakub Jelinek Committed by Jakub Jelinek

tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily allocate and free…

tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily allocate and free bbs array for the SLP case.

	* tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
	allocate and free bbs array for the SLP case.

From-SVN: r188657
parent 079c527f
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.
......
......@@ -2983,7 +2983,7 @@ void
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;
......@@ -3002,10 +3002,8 @@ vect_pattern_recog (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo)
}
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
......@@ -3031,6 +3029,4 @@ vect_pattern_recog (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo)
}
VEC_free (gimple, heap, stmts_to_replace);
if (bb_vinfo)
free (bbs);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment