summaryrefslogtreecommitdiff
path: root/gcc/tree-into-ssa.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-12 20:59:28 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-12 20:59:28 +0000
commit4c64356a3ebe4815eb20f398193327e78831b61b (patch)
treeef6efd848adb18c3716797fe42c38a08f297a155 /gcc/tree-into-ssa.c
parentd4ec02d0ecf6d14c63f307e91839aed4ba4978d7 (diff)
downloadgcc-4c64356a3ebe4815eb20f398193327e78831b61b.tar.gz
* tree-flow.h (name_mappings_registered_p): Declare.
* tree-into-ssa.c (name_mappings_registered_p): New function. * tree-cfg.c (tree_can_merge_blocks_p): Check name_mappings_registered_p instead of need_ssa_update_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r--gcc/tree-into-ssa.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c
index 14a50b62c62..3bcddfebaeb 100644
--- a/gcc/tree-into-ssa.c
+++ b/gcc/tree-into-ssa.c
@@ -2659,6 +2659,13 @@ need_ssa_update_p (void)
return syms_to_rename || old_ssa_names || new_ssa_names;
}
+/* Return true if SSA name mappings have been registered for SSA updating. */
+
+bool
+name_mappings_registered_p (void)
+{
+ return repl_tbl && htab_elements (repl_tbl) > 0;
+}
/* Return true if name N has been registered in the replacement table. */