aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-10-05 08:35:17 +0200
committerRichard Biener <rguenther@suse.de>2021-10-05 08:37:34 +0200
commit1581aa38eba0ab47eaebe45e8dc6bef6832381c8 (patch)
tree3cefae892277e74e4c9dce8c6ca8e8038f452c1a
parentda9c5f7856c929a3b80e22ab75ebeebce4409501 (diff)
downloadgcc-1581aa38eba0ab47eaebe45e8dc6bef6832381c8.zip
gcc-1581aa38eba0ab47eaebe45e8dc6bef6832381c8.tar.gz
gcc-1581aa38eba0ab47eaebe45e8dc6bef6832381c8.tar.bz2
Adjust gfortran.dg/predict-2.f90
After teaching VN to handle internal functions we now optimize the redundant inner loop preheader check of the testcase making the dump scanning fail because there's nothing to predict left. The following restores the inner preheader check by making it not redundant. 2021-10-05 Richard Biener <rguenther@suse.de> * gfortran.dg/predict-2.f90: Adjust to avoid redundant inner loop preheader checking code.
-rw-r--r--gcc/testsuite/gfortran.dg/predict-2.f904
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gfortran.dg/predict-2.f90 b/gcc/testsuite/gfortran.dg/predict-2.f90
index 11a9ec5..93e3ad6 100644
--- a/gcc/testsuite/gfortran.dg/predict-2.f90
+++ b/gcc/testsuite/gfortran.dg/predict-2.f90
@@ -2,10 +2,10 @@
! { dg-options "-O2 -fdump-tree-profile_estimate" }
subroutine test(block, array)
-integer :: i,j, block(9), array(2)
+integer :: i,j, block(9), array(4)
do i = array(1), array(2), 2
- do j = array(1), array(2), 3
+ do j = array(3), array(4), 3
block(i) = j
end do
end do