Generate constraints only once in intra_create_variable_infos
authorTom de Vries <tom@codesourcery.com>
Wed, 28 Oct 2015 15:09:21 +0000 (15:09 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 28 Oct 2015 15:09:21 +0000 (15:09 +0000)
2015-10-28  Tom de Vries  <tom@codesourcery.com>

* tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
into vi_next of a full_var.

From-SVN: r229490

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

index 440d84354c7c63bee967faa26cd4a09ae8abe20f..273dca71e258c764b364121247d650e70fd8e0cb 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-28  Tom de Vries  <tom@codesourcery.com>
+
+       * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
+       into vi_next of a full_var.
+
 2015-10-28  Tom de Vries  <tom@codesourcery.com>
 
        * tree-ssa-structalias.c (new_var_info, make_heapvar)
index 711b5a0059d1b1b37eeea660fbdb8fb717543546..90b020016a9791f65eeb5ff2dcb4c586c918a059 100644 (file)
@@ -5925,6 +5925,8 @@ intra_create_variable_infos (struct function *fn)
                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;
            }
        }
     }