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
This commit is contained in:
parent
079c527f5e
commit
772e61e10e
|
@ -1,5 +1,8 @@
|
||||||
2012-06-15 Jakub Jelinek <jakub@redhat.com>
|
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
|
PR tree-optimization/51581
|
||||||
* expr.h (choose_multiplier): New prototype.
|
* expr.h (choose_multiplier): New prototype.
|
||||||
* expmed.c (choose_multiplier): No longer static.
|
* 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)
|
vect_pattern_recog (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo)
|
||||||
{
|
{
|
||||||
struct loop *loop;
|
struct loop *loop;
|
||||||
basic_block *bbs, bb;
|
basic_block *bbs;
|
||||||
unsigned int nbbs;
|
unsigned int nbbs;
|
||||||
gimple_stmt_iterator si;
|
gimple_stmt_iterator si;
|
||||||
unsigned int i, j;
|
unsigned int i, j;
|
||||||
|
@ -3002,10 +3002,8 @@ vect_pattern_recog (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bb = BB_VINFO_BB (bb_vinfo);
|
bbs = &BB_VINFO_BB (bb_vinfo);
|
||||||
nbbs = 1;
|
nbbs = 1;
|
||||||
bbs = XNEW (basic_block);
|
|
||||||
bbs[0] = bb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Scan through the loop stmts, applying the pattern recognition
|
/* 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);
|
VEC_free (gimple, heap, stmts_to_replace);
|
||||||
if (bb_vinfo)
|
|
||||||
free (bbs);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue