OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* cse.c (record_jump_cond_subreg): New.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
tree-ssanames.c
diff --git
a/gcc/tree-ssanames.c
b/gcc/tree-ssanames.c
index
c9215f3
..
db6717c
100644
(file)
--- a/
gcc/tree-ssanames.c
+++ b/
gcc/tree-ssanames.c
@@
-62,7
+62,7
@@
Boston, MA 02111-1307, USA. */
varray_type ssa_names;
/* Bitmap of ssa names marked for rewriting. */
varray_type ssa_names;
/* Bitmap of ssa names marked for rewriting. */
-bitmap ssa_names_to_rewrite;
+
static
bitmap ssa_names_to_rewrite;
/* Free list of SSA_NAMEs. This list is wiped at the end of each function
after we leave SSA form. */
/* Free list of SSA_NAMEs. This list is wiped at the end of each function
after we leave SSA form. */
@@
-82,11
+82,7
@@
unsigned int ssa_name_nodes_created;
bool
marked_for_rewrite_p (tree var)
{
bool
marked_for_rewrite_p (tree var)
{
- if (ssa_names_to_rewrite
- && bitmap_bit_p (ssa_names_to_rewrite, SSA_NAME_VERSION (var)))
- return true;
-
- return false;
+ return bitmap_bit_p (ssa_names_to_rewrite, SSA_NAME_VERSION (var));
}
/* Returns true if any ssa name is marked for rewrite. */
}
/* Returns true if any ssa name is marked for rewrite. */
@@
-105,9
+101,6
@@
any_marked_for_rewrite_p (void)
void
mark_for_rewrite (tree var)
{
void
mark_for_rewrite (tree var)
{
- if (!ssa_names_to_rewrite)
- ssa_names_to_rewrite = BITMAP_XMALLOC ();
-
bitmap_set_bit (ssa_names_to_rewrite, SSA_NAME_VERSION (var));
}
bitmap_set_bit (ssa_names_to_rewrite, SSA_NAME_VERSION (var));
}
@@
-116,9
+109,6
@@
mark_for_rewrite (tree var)
void
unmark_all_for_rewrite (void)
{
void
unmark_all_for_rewrite (void)
{
- if (!ssa_names_to_rewrite)
- return;
-
bitmap_clear (ssa_names_to_rewrite);
}
bitmap_clear (ssa_names_to_rewrite);
}
@@
-129,8
+119,8
@@
bitmap
marked_ssa_names (void)
{
bitmap ret = BITMAP_XMALLOC ();
marked_ssa_names (void)
{
bitmap ret = BITMAP_XMALLOC ();
- if (ssa_names_to_rewrite)
-
bitmap_copy (ret, ssa_names_to_rewrite);
+
+ bitmap_copy (ret, ssa_names_to_rewrite);
return ret;
}
return ret;
}
@@
-148,6
+138,7
@@
init_ssanames (void)
large. */
VARRAY_PUSH_TREE (ssa_names, NULL_TREE);
free_ssanames = NULL;
large. */
VARRAY_PUSH_TREE (ssa_names, NULL_TREE);
free_ssanames = NULL;
+ ssa_names_to_rewrite = BITMAP_XMALLOC ();
}
/* Finalize management of SSA_NAMEs. */
}
/* Finalize management of SSA_NAMEs. */
@@
-155,6
+146,7
@@
init_ssanames (void)
void
fini_ssanames (void)
{
void
fini_ssanames (void)
{
+ BITMAP_XFREE (ssa_names_to_rewrite);
ggc_free (ssa_names);
ssa_names = NULL;
free_ssanames = NULL;
ggc_free (ssa_names);
ssa_names = NULL;
free_ssanames = NULL;