https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41244
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 55303 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55303&action=edit Better patch This is a better patch, operand_equal_p already does the integer cst check too.