https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88964
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Feb 7 14:39:13 2019 New Revision: 268630 URL: https://gcc.gnu.org/viewcvs?rev=268630&root=gcc&view=rev Log: Backported from mainline 2019-01-23 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/88964 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use build_zero_cst instead of build_int_cst. Return false for loop invariants which honor signed zeros. * gfortran.dg/pr88964.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/pr88964.f90 Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/gimple-loop-interchange.cc branches/gcc-8-branch/gcc/testsuite/ChangeLog