Remove superfluous code in intra_create_variable_infos
authorTom de Vries <tom@codesourcery.com>
Wed, 28 Oct 2015 21:19:32 +0000 (21:19 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 28 Oct 2015 21:19:32 +0000 (21:19 +0000)
2015-10-28  Tom de Vries  <tom@codesourcery.com>

* tree-ssa-structalias.c (intra_create_variable_infos): Remove
superfluous code.

From-SVN: r229506

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index c2d465a61e3b2af235bfacca67555c62d84df41c..36489c595c83a2df78572f6f3cfa12fd732bb981 100644 (file)
@@ -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.
index 90b020016a9791f65eeb5ff2dcb4c586c918a059..6f72dd30355bc9b9abaf839ba1079110d909337e 100644 (file)
@@ -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;
        }
     }