https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86038
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Jun 6 15:06:50 2018 New Revision: 261237 URL: https://gcc.gnu.org/viewcvs?rev=261237&root=gcc&view=rev Log: 2018-06-06 Richard Biener <rguent...@suse.de> Backport from mainline 2018-06-04 Richard Biener <rguent...@suse.de> PR tree-optimization/86038 * tracer.c (find_best_successor): Check probability for being initialized, bail out if not. * gcc.dg/pr86038.c: New testcase. 2018-05-30 Richard Biener <rguent...@suse.de> PR tree-optimization/85964 * tracer.c (better_p): Drop initialized count check, we only call the function with initialized counts now. (find_best_successor): Do find a best edge if one has uninitialized count. (find_best_predecessor): Likewise. Do BB frequency check only if count is initialized. 2018-05-28 Richard Biener <rguent...@suse.de> PR tree-optimization/85934 * tree-vect-generic.c (expand_vector_operations_1): Hoist vector boolean check before scalar optimization. * gcc.target/i386/pr85934.c: New testcase. 2018-05-22 Richard Biener <rguent...@suse.de> PR tree-optimization/85863 * tree-vect-stmts.c (vect_is_simple_cond): Only widen invariant comparisons when vectype is specified. (vectorizable_condition): Do not specify vectype for vect_is_simple_cond when SLP vectorizing. * gfortran.fortran-torture/compile/pr85863.f: New testcase. Added: branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr86038.c branches/gcc-8-branch/gcc/testsuite/gcc.target/i386/pr85934.c branches/gcc-8-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr85863.f Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/tracer.c branches/gcc-8-branch/gcc/tree-vect-generic.c branches/gcc-8-branch/gcc/tree-vect-stmts.c