https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68590
--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Dec 1 14:22:40 2015 New Revision: 231110 URL: https://gcc.gnu.org/viewcvs?rev=231110&root=gcc&view=rev Log: 2015-12-01 Richard Biener <rguent...@suse.de> PR middle-end/68590 * genmatch.c (struct capture_info): Add match_use_count. (capture_info::walk_match): Increment match_use_count. (dt_simplify::gen_1): For GENERIC, only wrap multi-use replacements in a save_expr if they occur more often than in the original expression. Modified: trunk/gcc/ChangeLog trunk/gcc/genmatch.c