Commit 0766b9ab by Martin Liska Committed by Martin Liska

Fix memory leak in tree-ssa-reassoc.c

	* tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.

From-SVN: r237559
parent 92354dc7
2016-06-17 Martin Liska <mliska@suse.cz> 2016-06-17 Martin Liska <mliska@suse.cz>
* tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
2016-06-17 Martin Liska <mliska@suse.cz>
* predict.def: PRED_LOOP_EXIT from 92 to 85. * predict.def: PRED_LOOP_EXIT from 92 to 85.
2016-06-17 James Greenhalgh <james.greenhalgh@arm.com> 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
......
...@@ -1807,7 +1807,7 @@ transform_add_to_multiply (vec<operand_entry *> *ops) ...@@ -1807,7 +1807,7 @@ transform_add_to_multiply (vec<operand_entry *> *ops)
tree op = NULL_TREE; tree op = NULL_TREE;
int j; int j;
int i, start = -1, end = 0, count = 0; int i, start = -1, end = 0, count = 0;
vec<std::pair <int, int> > indxs = vNULL; auto_vec<std::pair <int, int> > indxs;
bool changed = false; bool changed = false;
if (!INTEGRAL_TYPE_P (TREE_TYPE ((*ops)[0]->op)) if (!INTEGRAL_TYPE_P (TREE_TYPE ((*ops)[0]->op))
......
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