re PR tree-optimization/89268 (r268689 caused FAIL: gcc.dg/vect/pr79887.c)
PR tree-optimization/89268 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only if preds is non-NULL. * gcc.dg/vect/pr89268.c: New test. From-SVN: r268743
This commit is contained in:
parent
4c0d3f7728
commit
79e2c811f8
4 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2019-02-10 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/89268
|
||||
* tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
|
||||
if preds is non-NULL.
|
||||
|
||||
2019-02-09 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
PR lto/89272
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2019-02-10 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/89268
|
||||
* gcc.dg/vect/pr89268.c: New test.
|
||||
|
||||
2019-02-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* gnat.dg/lto19.adb: Remove dg-excess-errors.
|
||||
|
|
7
gcc/testsuite/gcc.dg/vect/pr89268.c
Normal file
7
gcc/testsuite/gcc.dg/vect/pr89268.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* PR tree-optimization/89268 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target vect_condition } */
|
||||
/* { dg-additional-options "-fno-trapping-math --param vect-epilogues-nomask=1" } */
|
||||
/* { dg-additional-options "-mavx512ifma -mtune=intel" { target x86_64-*-* i?86-*-* } } */
|
||||
|
||||
#include "pr79887.c"
|
|
@ -2760,7 +2760,8 @@ version_loop_for_if_conversion (struct loop *loop, vec<gimple *> *preds)
|
|||
new_loop->force_vectorize = false;
|
||||
gsi = gsi_last_bb (cond_bb);
|
||||
gimple_call_set_arg (g, 1, build_int_cst (integer_type_node, new_loop->num));
|
||||
preds->safe_push (g);
|
||||
if (preds)
|
||||
preds->safe_push (g);
|
||||
gsi_insert_before (&gsi, g, GSI_SAME_STMT);
|
||||
update_ssa (TODO_update_ssa);
|
||||
return new_loop;
|
||||
|
|
Loading…
Add table
Reference in a new issue