tree-ssa-pre.c (get_expression_vuses): Move out side-effect.

2007-07-12  Daniel Berlin  <dberlin@dberlin.org>

	* tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
	(set_expression_vuses): Ditto.
	(init_pre): Initialize expression_vuses.

From-SVN: r126595
This commit is contained in:
Daniel Berlin 2007-07-12 18:51:35 +00:00 committed by Daniel Berlin
parent 019b9fdbb3
commit c83c48792f
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2007-07-12 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
(set_expression_vuses): Ditto.
(init_pre): Initialize expression_vuses.
2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
* config/i386/sse.md (storentdf, storentsf): New.

View File

@ -252,8 +252,8 @@ expression_for_id (unsigned int id)
static inline vuse_vec
get_expression_vuses (tree expr)
{
return VEC_index (vuse_vec, expression_vuses,
get_or_alloc_expression_id (expr));
unsigned int expr_id = get_or_alloc_expression_id (expr);
return VEC_index (vuse_vec, expression_vuses, expr_id);
}
/* Set the expression vuses for EXPR to VUSES. */
@ -261,8 +261,8 @@ get_expression_vuses (tree expr)
static inline void
set_expression_vuses (tree expr, vuse_vec vuses)
{
VEC_replace (vuse_vec, expression_vuses,
get_or_alloc_expression_id (expr), vuses);
unsigned int expr_id = get_or_alloc_expression_id (expr);
VEC_replace (vuse_vec, expression_vuses, expr_id, vuses);
}
@ -3795,6 +3795,7 @@ init_pre (bool do_fre)
next_expression_id = 0;
expressions = NULL;
expression_vuses = NULL;
in_fre = do_fre;
inserted_exprs = NULL;