From 38b882b5421ed6480468e458d24f3cbcfc67f26b Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 28 Oct 2015 21:19:32 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-structalias.c | 19 +++++++------------ 2 files changed, 12 insertions(+), 12 deletions(-) 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; } } -- 2.30.2