re PR tree-optimization/86214 (Strongly increased stack usage)
authorJakub Jelinek <jakub@redhat.com>
Thu, 17 Jan 2019 08:05:12 +0000 (09:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 Jan 2019 08:05:12 +0000 (09:05 +0100)
PR tree-optimization/86214
* cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
if x == y.

From-SVN: r268009

gcc/ChangeLog
gcc/cfgexpand.c

index 986a73d011825545ed1e989a9cbf119f959853f2..170464af9ba3703d8a93a64d18c9c3978731ff48 100644 (file)
@@ -1,5 +1,9 @@
 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
 
+       PR tree-optimization/86214
+       * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
+       if x == y.
+
        PR rtl-optimization/88870
        * dce.c (deletable_insn_p): Never delete const/pure calls that can
        throw if we can't alter the cfg or delete dead exceptions.
index 2337c6312d01d525d14a73ae9463743176a1c28e..518d71c74c8244a25a1bbdcc468ebf2ccc3c9c6d 100644 (file)
@@ -470,6 +470,8 @@ add_stack_var_conflict (size_t x, size_t y)
 {
   struct stack_var *a = &stack_vars[x];
   struct stack_var *b = &stack_vars[y];
+  if (x == y)
+    return;
   if (!a->conflicts)
     a->conflicts = BITMAP_ALLOC (&stack_var_bitmap_obstack);
   if (!b->conflicts)