The PR/21254 has a fix for the 4.0 branch, approved by Mark, that I
applied a couple of hours ago. However the patch is different from what
Zdenek committed to mainline. It lacks the following line:
Index: loop-iv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop-iv.c,v
retrieving revision 2.26.12.1
diff -p -u -b -r2.26.12.1 loop-iv.c
--- loop-iv.c 17 Aug 2005 12:45:01 -0000 2.26.12.1
+++ loop-iv.c 17 Aug 2005 14:35:46 -0000
@@ -2551,6 +2551,7 @@ zero_iter:
desc->const_iter = true;
desc->niter = 0;
desc->niter_max = 0;
+ desc->noloop_assumptions = NULL_RTX;