From: Richard Biener Date: Tue, 5 Oct 2021 06:35:17 +0000 (+0200) Subject: Adjust gfortran.dg/predict-2.f90 X-Git-Tag: basepoints/gcc-13~4163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1581aa38eba0ab47eaebe45e8dc6bef6832381c8;p=thirdparty%2Fgcc.git 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 * gfortran.dg/predict-2.f90: Adjust to avoid redundant inner loop preheader checking code. --- diff --git a/gcc/testsuite/gfortran.dg/predict-2.f90 b/gcc/testsuite/gfortran.dg/predict-2.f90 index 11a9ec5fd4b3..93e3ad65c747 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