https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89922
JunMa <JunMa at linux dot alibaba.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |JunMa at linux dot alibaba.com --- Comment #5 from JunMa <JunMa at linux dot alibaba.com> --- the testcase in https://godbolt.org/z/iKi0pb is well optimized in gcc6.5 with O3, but not gcc7 and later. I have checked the gimple code dumped by optimized pass which are same. The difference is done by rtl_cse1 pass.