diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-11 20:24:38 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-11 20:24:38 +0000 |
commit | 93206bb0e5225c5f809723bea99cef9504ba0898 (patch) | |
tree | e2bde514c032c54517e50a6d3f9a7a5e4b42082d /gcc/sese.c | |
parent | 88a551f165ada66781b7378e78055faed2e9c3fa (diff) | |
download | gcc-93206bb0e5225c5f809723bea99cef9504ba0898.tar.gz |
Remove rename_nb_iterations and rename_sese_parameters
2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
* graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
Remove calls to rename_nb_iterations and rename_sese_parameters.
* graphite-clast-to-gimple.h (gloog): Update declaration.
* graphite.c (graphite_transform_loops): Update call to gloog.
* sese.c (rename_variables_in_expr): Removed.
(rename_nb_iterations): Removed.
(rename_sese_parameters): Removed.
* sese.h (rename_nb_iterations): Removed.
(rename_sese_parameters): Removed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163119 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sese.c')
-rw-r--r-- | gcc/sese.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/gcc/sese.c b/gcc/sese.c index 0a6c45d959c..8f6b7d75297 100644 --- a/gcc/sese.c +++ b/gcc/sese.c @@ -435,62 +435,6 @@ set_rename (htab_t map, tree old_name, tree expr) *slot = new_rename_map_elt (old_name, expr); } -/* Renames the expression T following the tuples (OLD_NAME, EXPR) in - the rename map M. Returns the expression T after renaming. */ - -static tree -rename_variables_in_expr (htab_t m, tree t) -{ - if (!t) - return t; - - if (TREE_CODE (t) == SSA_NAME) - return get_rename (m, t); - - switch (TREE_CODE_LENGTH (TREE_CODE (t))) - { - case 3: - TREE_OPERAND (t, 2) = rename_variables_in_expr (m, TREE_OPERAND (t, 2)); - - case 2: - TREE_OPERAND (t, 1) = rename_variables_in_expr (m, TREE_OPERAND (t, 1)); - - case 1: - TREE_OPERAND (t, 0) = rename_variables_in_expr (m, TREE_OPERAND (t, 0)); - - default: - return t; - } -} - -/* Renames all the loop->nb_iterations expressions following the - tuples (OLD_NAME, EXPR) in RENAME_MAP. */ - -void -rename_nb_iterations (htab_t rename_map) -{ - loop_iterator li; - struct loop *loop; - - FOR_EACH_LOOP (li, loop, 0) - loop->nb_iterations = rename_variables_in_expr (rename_map, - loop->nb_iterations); -} - -/* Renames all the parameters of SESE following the tuples (OLD_NAME, - EXPR) in RENAME_MAP. */ - -void -rename_sese_parameters (htab_t rename_map, sese region) -{ - int i; - tree p; - - for (i = 0; VEC_iterate (tree, SESE_PARAMS (region), i, p); i++) - VEC_replace (tree, SESE_PARAMS (region), i, - rename_variables_in_expr (rename_map, p)); -} - /* Rename the SSA_NAMEs used in STMT and that appear in MAP. */ static void |