tree-outof-ssa.c (check_replaceable): Do not allocate def_vars bitmap when not needed.
* tree-outof-ssa.c (check_replaceable): Do not allocate def_vars bitmap when not needed. * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary bitmaps. From-SVN: r115851
This commit is contained in:
parent
5374336777
commit
9824b8867a
@ -1,3 +1,10 @@
|
||||
2006-08-01 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
|
||||
bitmap when not needed.
|
||||
* tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
|
||||
bitmaps.
|
||||
|
||||
2006-08-01 Dirk Mueller <dmueller@suse.de>
|
||||
|
||||
* tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
|
||||
|
@ -1556,7 +1556,7 @@ check_replaceable (temp_expr_table_p tab, tree stmt)
|
||||
var_map map = tab->map;
|
||||
ssa_op_iter iter;
|
||||
tree call_expr;
|
||||
bitmap def_vars = BITMAP_ALLOC (NULL), use_vars;
|
||||
bitmap def_vars, use_vars;
|
||||
|
||||
if (TREE_CODE (stmt) != MODIFY_EXPR)
|
||||
return false;
|
||||
@ -1588,6 +1588,7 @@ check_replaceable (temp_expr_table_p tab, tree stmt)
|
||||
|
||||
version = SSA_NAME_VERSION (def);
|
||||
basevar = SSA_NAME_VAR (def);
|
||||
def_vars = BITMAP_ALLOC (NULL);
|
||||
bitmap_set_bit (def_vars, DECL_UID (basevar));
|
||||
|
||||
/* Add this expression to the dependency list for each use partition. */
|
||||
|
@ -624,7 +624,7 @@ bitmap_set_and (bitmap_set_t dest, bitmap_set_t orig)
|
||||
if (!bitmap_bit_p (dest->values, VALUE_HANDLE_ID (val)))
|
||||
bitmap_clear_bit (dest->expressions, i);
|
||||
}
|
||||
|
||||
BITMAP_FREE (temp);
|
||||
}
|
||||
|
||||
/* Perform bitmapped value set operation DEST = DEST & ~ORIG. */
|
||||
@ -645,6 +645,7 @@ bitmap_set_and_compl (bitmap_set_t dest, bitmap_set_t orig)
|
||||
if (!bitmap_bit_p (dest->values, VALUE_HANDLE_ID (val)))
|
||||
bitmap_clear_bit (dest->expressions, i);
|
||||
}
|
||||
BITMAP_FREE (temp);
|
||||
}
|
||||
|
||||
/* Return true if the bitmap set SET is empty. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user