https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93381
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Guenther <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:f5ee5d05f367d6221b76f7a3ef7dad96605dbf04 commit r10-6172-gf5ee5d05f367d6221b76f7a3ef7dad96605dbf04 Author: Richard Biener <rguent...@suse.de> Date: Thu Jan 23 12:43:26 2020 +0100 tree-optimization/93354 FRE redundant store removal validity fix This fixes tracking of the alias-set of partial defs for use by redundant store removal. 2020-01-23 Richard Biener <rguent...@suse.de> PR tree-optimization/93381 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Take alias-set of the def as argument and record the first one. (vn_walk_cb_data::first_set): New member. (vn_reference_lookup_3): Pass the alias-set of the current def to push_partial_def. Fix alias-set used in the aggregate copy case. (vn_reference_lookup): Consistently set *last_vuse_ptr. * real.c (clear_significand_below): Fix out-of-bound access. * gcc.dg/torture/pr93354.c: New testcase.