https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80776
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |NEW --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am going to reopen this because the VRP issue has not been solved. You can reproduce the same issue adding -fno-tree-reassoc to the testcase. It just happens reassociating combined with the find_duplicates part of the PRE pass allows it to be optimized.