aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-manip.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2013-03-18 08:50:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2013-03-18 08:50:35 +0000
commit789c34e3c7bb5e5c7c2cadd8de7c395654bf99cf (patch)
treefd3c04f48ff5f735f369b2139b77be033bcb4b05 /gcc/tree-ssa-loop-manip.c
parent076b460557487a225815e3870405e67a3f149a0c (diff)
downloadgcc-789c34e3c7bb5e5c7c2cadd8de7c395654bf99cf.zip
gcc-789c34e3c7bb5e5c7c2cadd8de7c395654bf99cf.tar.gz
gcc-789c34e3c7bb5e5c7c2cadd8de7c395654bf99cf.tar.bz2
tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the whole function when there is nothing to do.
2013-03-18 Richard Biener <rguenther@suse.de> * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the whole function when there is nothing to do. * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa. * tree-vectorizer.c (vectorize_loops): Update virtual and loop-closed SSA once. * tree-vect-loop.c (vect_transform_loop): Do not update SSA here. From-SVN: r196770
Diffstat (limited to 'gcc/tree-ssa-loop-manip.c')
-rw-r--r--gcc/tree-ssa-loop-manip.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/gcc/tree-ssa-loop-manip.c b/gcc/tree-ssa-loop-manip.c
index 4645588..a0516c4 100644
--- a/gcc/tree-ssa-loop-manip.c
+++ b/gcc/tree-ssa-loop-manip.c
@@ -443,21 +443,12 @@ find_uses_to_rename (bitmap changed_bbs, bitmap *use_blocks, bitmap need_phis)
unsigned index;
bitmap_iterator bi;
- /* ??? If CHANGED_BBS is empty we rewrite the whole function -- why? */
- if (changed_bbs && !bitmap_empty_p (changed_bbs))
- {
- EXECUTE_IF_SET_IN_BITMAP (changed_bbs, 0, index, bi)
- {
- find_uses_to_rename_bb (BASIC_BLOCK (index), use_blocks, need_phis);
- }
- }
+ if (changed_bbs)
+ EXECUTE_IF_SET_IN_BITMAP (changed_bbs, 0, index, bi)
+ find_uses_to_rename_bb (BASIC_BLOCK (index), use_blocks, need_phis);
else
- {
- FOR_EACH_BB (bb)
- {
- find_uses_to_rename_bb (bb, use_blocks, need_phis);
- }
- }
+ FOR_EACH_BB (bb)
+ find_uses_to_rename_bb (bb, use_blocks, need_phis);
}
/* Rewrites the program into a loop closed ssa form -- i.e. inserts extra