+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.
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;
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. */
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. */
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. */