diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-10-28 21:19:32 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-10-28 21:19:32 +0000 |
commit | 38b882b5421ed6480468e458d24f3cbcfc67f26b (patch) | |
tree | 772fd5f63ac1e8a3268612644fae18e96fe5db9e | |
parent | e922069e4f3e5dfadb59f641db6786feff9c6047 (diff) | |
download | gcc-38b882b5421ed6480468e458d24f3cbcfc67f26b.zip gcc-38b882b5421ed6480468e458d24f3cbcfc67f26b.tar.gz gcc-38b882b5421ed6480468e458d24f3cbcfc67f26b.tar.bz2 |
Remove superfluous code in intra_create_variable_infos
2015-10-28 Tom de Vries <tom@codesourcery.com>
* tree-ssa-structalias.c (intra_create_variable_infos): Remove
superfluous code.
From-SVN: r229506
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-structalias.c | 19 |
2 files changed, 12 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2d465a..36489c59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-28 Tom de Vries <tom@codesourcery.com> + + * tree-ssa-structalias.c (intra_create_variable_infos): Remove + superfluous code. + 2015-10-28 Jason Merrill <jason@redhat.com> * Makefile.in (TAGS): Include libcpp and libiberty. diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 90b0200..6f72dd3 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; } } |