[Bug tree-optimization/89268] [9 Regression] r268689 caused FAIL: gcc.dg/vect/pr79887.c
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 9 16:50:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89268
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-02-09
CC| |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think we want:
--- gcc/tree-if-conv.c.jj 2019-02-08 20:00:40.774827920 +0100
+++ gcc/tree-if-conv.c 2019-02-09 17:35:36.995782510 +0100
@@ -2760,7 +2760,8 @@ version_loop_for_if_conversion (struct l
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;
so that it behaves as before when called from tree-vect-loop.c (preds is NULL).
More information about the Gcc-bugs
mailing list