https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69845
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #4) > regressed at -O2 with r204454. That just points to the -O2 regression, -O1 would have happened at a different point as VRP is enabled at -O2 and above. I suspect doing distribution of 1207142401 * ... is the original cause of the problem. The main reason is because (((8 * B) + 9483541) - 230968044) is 1 without any overflow but with distribution, B * 1067204616 overflows right away.