re PR target/77526 (ICE: in verify_dominators, at dominance.c:1039 with -mstringop...
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Sep 2016 07:10:08 +0000 (09:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Sep 2016 07:10:08 +0000 (09:10 +0200)
PR target/77526
* combine.c (rest_of_handle_combine): If any edges have been purged,
free dominators if available.

* gcc.target/i386/pr77526.c: New test.

From-SVN: r240174

gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr77526.c [new file with mode: 0644]

index 0287d52c5e0368565758189d4c13f4a7cef70245..2d40745e6fef51c48bdc2578b08a96a4076650b8 100644 (file)
@@ -1,3 +1,9 @@
+2016-09-16  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/77526
+       * combine.c (rest_of_handle_combine): If any edges have been purged,
+       free dominators if available.
+
 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
            Eric Botcazou  <ebotcazou@adacore.com>
 
index 1b262f94fed1645910de65900f035df154f91401..1e43d48cc56e8a7b254a625c528957dba8f9bdc3 100644 (file)
@@ -14393,6 +14393,8 @@ rest_of_handle_combine (void)
      instructions.  */
   if (rebuild_jump_labels_after_combine)
     {
+      if (dom_info_available_p (CDI_DOMINATORS))
+       free_dominance_info (CDI_DOMINATORS);
       timevar_push (TV_JUMP);
       rebuild_jump_labels (get_insns ());
       cleanup_cfg (0);
index 8d739b5a7596fd0abb63b5ae556b4a1d688eaccd..91d19629f93f8477eb28bc5a400376873b50e3c8 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-16  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/77526
+       * gcc.target/i386/pr77526.c: New test.
+
 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
            Eric Botcazou  <ebotcazou@adacore.com>
 
diff --git a/gcc/testsuite/gcc.target/i386/pr77526.c b/gcc/testsuite/gcc.target/i386/pr77526.c
new file mode 100644 (file)
index 0000000..91b946a
--- /dev/null
@@ -0,0 +1,13 @@
+/* PR target/77526 */
+/* { dg-do compile { target int128 } } */
+/* { dg-options "-Os -fno-forward-propagate -fno-gcse -fno-rerun-cse-after-loop -mstringop-strategy=byte_loop -Wno-psabi" } */
+
+typedef char U __attribute__((vector_size(64)));
+typedef __int128 V __attribute__((vector_size(64)));
+
+V
+foo (int a, int b, __int128 c, U u)
+{
+  u = (u >> (u & 7)) | (u << -(u & 7));
+  return a + b + c + (V)u;
+}