summaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 15:27:37 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 15:27:37 +0000
commitae5a4794476d324a0190599d68449fb489c9f14e (patch)
tree045c5d0ec64afc180b33c76ab77d652bb726157b /gcc/tree-sra.c
parentee4a2486ce802d17b6723b7d02767fe4489d492a (diff)
downloadgcc-ae5a4794476d324a0190599d68449fb489c9f14e.tar.gz
2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
PR optimization/14466 * tree-complex.c (make_temp): Remove. (gimplify_val): Replace make_temp with make_rename_temp and add NULL as the second argument. (expand_complex_div_wide): Likewise. * tree-dfa.c (make_rename_temp): New function. * tree-flow.h (make_rename_temp): Declare. * tree-sra.c (make_temp): Remove. (lookup_scalar): Replace make_temp with make_rename_temp. (create_scalar_copies): Likewise. * tree-ssa-phiopt.c (conditional_replacement): When we get non gimple create a temporary variable to hold the casted expression. 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu> PR optimization/14466 * gcc.dg/tree-ssa/20040514-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81847 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index d447b82d768..46a3c59e117 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -112,17 +112,6 @@ sra_elt_eq (const void *x, const void *y)
return true;
}
-/* Build a temporary. Make sure and register it to be renamed. */
-
-static tree
-make_temp (tree type, const char *prefix)
-{
- tree t = create_tmp_var (type, prefix);
- add_referenced_tmp_var (t);
- bitmap_set_bit (vars_to_rename, var_ann (t)->uid);
- return t;
-}
-
/* Mark all the variables in VDEF operands for STMT for renaming.
This becomes necessary when we modify all of a non-scalar. */
@@ -194,7 +183,7 @@ lookup_scalar (struct sra_elt *key, tree type)
res = xmalloc (sizeof (*res));
*slot = res;
*res = *key;
- res->replace = make_temp (type, "SR");
+ res->replace = make_rename_temp (type, "SR");
if (DECL_NAME (key->base) && !DECL_IGNORED_P (key->base))
{
@@ -691,7 +680,7 @@ create_scalar_copies (tree lhs, tree rhs, enum sra_copy_mode mode)
tree stmt, tmp;
/* Add TMP = VA_ARG_EXPR <> */
- tmp = make_temp (TREE_TYPE (rhs), NULL);
+ tmp = make_rename_temp (TREE_TYPE (rhs), NULL);
stmt = csc_assign (&tsi, tmp, rhs);
/* Mark all the variables in VDEF operands for renaming, because