https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92980
--- Comment #5 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Andrew Pinski from comment #4) > But that is not true any more. So I think this optimization can be removed > as it is too early. Just double check the above testcase and the C++ > testcase (g++.dg/opt/ptrintsum1.C) to make sure they still work and post > that removal. Removal works fines with those 2 testcases.