[PATCH]: Fix thinko in tree-ssa-structalias.c
Daniel Berlin
dberlin@dberlin.org
Wed Oct 25 13:52:00 GMT 2006
Due to a thinko, we recreated the nonlocal variable every time PTA was
run, causing a lot more vops than we should have had.
Bootstrapped and regtested on i686-darwin, commited to mainline and 4.2 branch.
2006-10-25 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-structalias.c (intra_create_variable_infos):
Don't recreate nonlocal_all if it already exists.
-------------- next part --------------
Index: tree-ssa-structalias.c
===================================================================
--- tree-ssa-structalias.c (revision 118028)
+++ tree-ssa-structalias.c (working copy)
@@ -4308,7 +4308,8 @@ intra_create_variable_infos (void)
make_constraint_from_escaped (p);
}
}
- nonlocal_all = create_nonlocal_var (void_type_node);
+ if (!nonlocal_all)
+ nonlocal_all = create_nonlocal_var (void_type_node);
/* Create variable info for the nonlocal var if it does not
exist. */
More information about the Gcc-patches
mailing list