https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106268
Bug ID: 106268 Summary: [suboptimal] Remove unnecessary loops releated to fortran compare to ifort Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zhongyunde at huawei dot com Target Milestone: --- For the kernel inner loop body, gcc generate an loop, while icc doesn't, see detail in https://godbolt.org/z/G77nKnf8W. ``` DO i = 1, 10000 do l = 1, ADM_lall rhogw_vm(:,ADM_kmin ,l) = 0.D0 rhogw_vm(:,ADM_kmax+1,l) = 0.D0 enddo enddo ```