https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85597
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue May 8 13:33:54 2018 New Revision: 260044 URL: https://gcc.gnu.org/viewcvs?rev=260044&root=gcc&view=rev Log: 2018-05-08 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-03 Richard Biener <rguent...@suse.de> PR tree-optimization/85615 * tree-ssa-threadupdate.c (thread_block_1): Only allow exits to loops not nested in BBs loop father to avoid creating multi-entry loops. * gcc.dg/torture/pr85615.c: New testcase. 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-8-branch/gcc/testsuite/gcc.dg/torture/pr85567.c branches/gcc-8-branch/gcc/testsuite/gcc.dg/torture/pr85588.c branches/gcc-8-branch/gcc/testsuite/gcc.dg/torture/pr85615.c branches/gcc-8-branch/gcc/testsuite/gcc.dg/vect/pr85597.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/fold-const.c branches/gcc-8-branch/gcc/gimplify.c branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/testsuite/gcc.dg/torture/pr57656.c branches/gcc-8-branch/gcc/tree-ssa-threadupdate.c branches/gcc-8-branch/gcc/tree-vect-stmts.c