https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86617
--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 23 Jul 2018, bernd.edlinger at hotmail dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86617 > > --- Comment #5 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- > (In reply to Richard Biener from comment #3) > > but I guess that doesn't work because the counting is missing. OTOH > > two same SAVE_EXPRs () are not operand_equal_p but SAVE_EXPRs have > > TREE_SIDE_EFFECTS set but we can safely handle SAVE_EXPR + SAVE_EXPR. > > > > shouldn't that be fixed in operand_equal_p ? Probably. Can you test your patch and post it?