https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25500
--- Comment #27 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 62094 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62094&action=edit Updated testcase This is an updated testcase as total variable is unused and is being removed (even when turning SRA off) since GCC 10.