https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85567
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Thu Jun 7 10:10:00 2018 New Revision: 261269 URL: https://gcc.gnu.org/viewcvs?rev=261269&root=gcc&view=rev Log: 2018-06-07 Richard Biener <rguent...@suse.de> Backport from mainline 2018-05-04 Richard Biener <rguent...@suse.de> PR middle-end/85588 * fold-const.c (negate_expr_p): Restrict negation of operand zero of a division to when we know that can happen without overflow. (fold_negate_expr_1): Likewise. * gcc.dg/torture/pr85588.c: New testcase. * gcc.dg/torture/pr57656.c: Use dg-additional-options. 2018-05-02 Richard Biener <rguent...@suse.de> PR middle-end/85567 * gimplify.c (gimplify_save_expr): When in SSA form allow SAVE_EXPRs to compute to SSA vars. * gcc.dg/torture/pr85567.c: New testcase. 2018-05-02 Richard Biener <rguent...@suse.de> PR tree-optimization/85597 * tree-vect-stmts.c (vectorizable_operation): For ternary SLP do not use split vect_get_vec_defs call but call vect_get_slp_defs directly. * gcc.dg/vect/pr85597.c: New testcase. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/torture/pr85567.c branches/gcc-7-branch/gcc/testsuite/gcc.dg/torture/pr85588.c branches/gcc-7-branch/gcc/testsuite/gcc.dg/vect/pr85597.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/fold-const.c branches/gcc-7-branch/gcc/gimplify.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/gcc.dg/torture/pr57656.c branches/gcc-7-branch/gcc/tree-vect-stmts.c