aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-04-27 11:02:03 +0200
committerRichard Biener <rguenther@suse.de>2021-04-27 11:04:17 +0200
commitdfdc02bf29670c1c7f5f2820b6db11c66c258716 (patch)
treecb4760cc6f59ba41dde0f25383eca657f197923f /gcc
parentbbadf83e5a2a1e3bf713dd41391e149aea2d61db (diff)
downloadgcc-dfdc02bf29670c1c7f5f2820b6db11c66c258716.zip
gcc-dfdc02bf29670c1c7f5f2820b6db11c66c258716.tar.gz
gcc-dfdc02bf29670c1c7f5f2820b6db11c66c258716.tar.bz2
testsuite/100272 - undo PRE disabling for gcc.dg/tree-ssa/predcom-1.c
This re-enables PRE and fixes the malformed dg directive pointed out in the PR. It all works as desired and I forgot why I disabled this in the past. 2021-04-27 Richard Biener <rguenther@suse.de> PR testsuite/100272 * gcc.dg/tree-ssa/predcom-1.c: Re-enable PRE and fix malformed dg directive.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/predcom-1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/predcom-1.c b/gcc/testsuite/gcc.dg/tree-ssa/predcom-1.c
index 4bc2ea5..f68be2b 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/predcom-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/predcom-1.c
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-do run } */
-/* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details -fno-tree-pre" } */
+/* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */
void abort (void);
@@ -45,6 +45,5 @@ int main(void)
/* Verify that both loops were transformed and unrolled. */
/* { dg-final { scan-tree-dump-times "Unrolling 2 times." 2 "pcom"} } */
-/* Also check that we undid the transformation previously made by PRE.
- ??? PRE now does the predictive commoning in count_averages. */
-/* dg-final { scan-tree-dump-times "looparound ref" 1 "pcom" } */
+/* Also check that we undid the transformation previously made by PRE. */
+/* { dg-final { scan-tree-dump-times "looparound ref" 1 "pcom" } } */