diff mbox series

Adjust gfortran.dg/predict-2.f90

Message ID p957o64o-sq29-rp5o-01q-514op4rn3r73@fhfr.qr
State New
Headers show
Series Adjust gfortran.dg/predict-2.f90 | expand

Commit Message

Richard Biener Oct. 5, 2021, 6:37 a.m. UTC
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.

Tested on x86_64-unknown-linux-gnu, pushed.

2021-10-05  Richard Biener  <rguenther@suse.de>

	* gfortran.dg/predict-2.f90: Adjust to avoid redundant
	inner loop preheader checking code.
---
 gcc/testsuite/gfortran.dg/predict-2.f90 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gfortran.dg/predict-2.f90 b/gcc/testsuite/gfortran.dg/predict-2.f90
index 11a9ec5fd4b..93e3ad65c74 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