https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91195
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Nov 20 08:26:52 2019 New Revision: 278479 URL: https://gcc.gnu.org/viewcvs?rev=278479&root=gcc&view=rev Log: PR middle-end/91195 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added load. * gcc.dg/pr91195.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr91195.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-phiopt.c