]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust gcc.dg/tree-ssa/pr92834.c
authorRichard Biener <rguenther@suse.de>
Thu, 30 Oct 2025 13:24:46 +0000 (14:24 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Oct 2025 13:26:27 +0000 (14:26 +0100)
Scanning the optimized dump is fragile due to vectorization.  The
following instead scans after early phiopt1, adjusting for not
yet eliminated static functions.

* gcc.dg/tree-ssa/pr92834.c: Scan phiopt1 instead of optimized.

gcc/testsuite/gcc.dg/tree-ssa/pr92834.c

index 889048d3840dfb611c30a1de9476060ceba9b905..70acf74b3a009b2d8a445575f2d7d8ec08787d0d 100644 (file)
@@ -1,8 +1,8 @@
 /* PR tree-optimization/92834 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
-/* { dg-final { scan-tree-dump-times "MIN_EXPR <" 8 "optimized" } } */
-/* { dg-final { scan-tree-dump-times "MAX_EXPR <" 8 "optimized" } } */
+/* { dg-options "-O2 -fdump-tree-phiopt1" } */
+/* { dg-final { scan-tree-dump-times "MIN_EXPR <" 16 "phiopt1" } } */
+/* { dg-final { scan-tree-dump-times "MAX_EXPR <" 16 "phiopt1" } } */
 
 static inline unsigned
 umax1 (unsigned a, unsigned b)