http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59812
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The warning is documented to warn only about loops with constant number of iterations. Generally the number of iterations analysis which computes that the loop has at most 4 (valid) iterations on the other side doesn't have access to VRP to see what the values would be here, while for post-VRP it could use remembered SSA_NAME_RANGE_INFO, during VRP when this is optimized it can't, it isn't stored there yet.