]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR tree-optimization/86214
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jan 2019 08:05:12 +0000 (08:05 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jan 2019 08:05:12 +0000 (08:05 +0000)
* cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
if x == y.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268009 138bc75d-0d04-0410-961f-82ee72b054a4

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)