https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79411
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:58:01 2017 New Revision: 248642 URL: https://gcc.gnu.org/viewcvs?rev=248642&root=gcc&view=rev Log: Backported from mainline 2017-02-10 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/79411 * tree-ssa-reassoc.c (is_reassociable_op): Return false if stmt operands are SSA_NAMEs used in abnormal phis. (can_reassociate_p): Return false if op is SSA_NAME used in abnormal phis. * gcc.c-torture/compile/pr79411.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/compile/pr79411.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/testsuite/ChangeLog branches/gcc-5-branch/gcc/tree-ssa-reassoc.c