From: Tom de Vries Date: Wed, 28 Oct 2015 21:19:32 +0000 (+0000) Subject: Remove superfluous code in intra_create_variable_infos X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38b882b5421ed6480468e458d24f3cbcfc67f26b;p=gcc.git Remove superfluous code in intra_create_variable_infos 2015-10-28 Tom de Vries * tree-ssa-structalias.c (intra_create_variable_infos): Remove superfluous code. From-SVN: r229506 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2d465a61e3..36489c595c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-28 Tom de Vries + + * tree-ssa-structalias.c (intra_create_variable_infos): Remove + superfluous code. + 2015-10-28 Jason Merrill * Makefile.in (TAGS): Include libcpp and libiberty. diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 90b020016a9..6f72dd30355 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -5915,19 +5915,14 @@ intra_create_variable_infos (struct function *fn) continue; } - if (restrict_pointer_p) - make_constraint_from_global_restrict (p, "PARM_RESTRICT", true); - else + for (; p; p = vi_next (p)) { - for (; p; p = vi_next (p)) - { - if (p->only_restrict_pointers) - make_constraint_from_global_restrict (p, "PARM_RESTRICT", true); - else if (p->may_have_pointers) - make_constraint_from (p, nonlocal_id); - if (p->is_full_var) - break; - } + if (p->only_restrict_pointers) + make_constraint_from_global_restrict (p, "PARM_RESTRICT", true); + else if (p->may_have_pointers) + make_constraint_from (p, nonlocal_id); + if (p->is_full_var) + break; } }