]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-optimization/106737 - remove intermediate SSA verification in autopar
authorRichard Biener <rguenther@suse.de>
Thu, 25 Aug 2022 08:42:30 +0000 (10:42 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 25 Aug 2022 08:44:43 +0000 (10:44 +0200)
The following removes intermediate SSA verification in autopar which
isn't expected to succeed after previous changes delaying (virtual)
SSA update to the end of the pass.

PR tree-optimization/106737
* tree-parloops.cc (transform_to_exit_first_loop_alt): Do not
verify SSA form.

* gcc.dg/autopar/pr106737.c: New testcase.

gcc/testsuite/gcc.dg/autopar/pr106737.c [new file with mode: 0644]
gcc/tree-parloops.cc

diff --git a/gcc/testsuite/gcc.dg/autopar/pr106737.c b/gcc/testsuite/gcc.dg/autopar/pr106737.c
new file mode 100644 (file)
index 0000000..3ec8f5d
--- /dev/null
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-O -floop-parallelize-all -ftree-parallelize-loops=2 -fno-tree-dce" } */
+
+void
+foo (int x)
+{
+  int a[2];
+  int b, c = 0;
+
+  for (b = 0; b < 2; ++b)
+    a[b] = 0;
+  for (b = 0; b < 2; ++b)
+    a[b] = 0;
+
+  while (c < 1)
+    while (x < 1)
+      ++x;
+}
index b070527ee6eab66f3e52ec2c687f70eee6a76568..76483fcaaa2d297c267e66a6f300e2be7a291ca3 100644 (file)
@@ -2484,8 +2484,6 @@ transform_to_exit_first_loop_alt (class loop *loop,
   /* Recalculate dominance info.  */
   free_dominance_info (CDI_DOMINATORS);
   calculate_dominance_info (CDI_DOMINATORS);
-
-  checking_verify_ssa (true, true);
 }
 
 /* Tries to moves the exit condition of LOOP to the beginning of its header