From: Richard Biener Date: Tue, 17 Sep 2019 08:08:40 +0000 (+0000) Subject: re PR tree-optimization/91790 (ICE: verify_ssa failed (error: definition in block... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8054d17a735e4e1a35e9a24556eea100249345ed;p=gcc.git re PR tree-optimization/91790 (ICE: verify_ssa failed (error: definition in block 2 follows the use)) 2019-09-17 Richard Biener PR tree-optimization/91790 * tree-vect-stmts.c (vectorizable_load): For BB vectorization use the correct DR for setting up realignment. From-SVN: r275798 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2f4de49fe85..3a9e63783f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-09-17 Richard Biener + + PR tree-optimization/91790 + * tree-vect-stmts.c (vectorizable_load): For BB vectorization + use the correct DR for setting up realignment. + 2019-09-16 Uroš Bizjak PR target/91719 diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index edc7e0de4d3..7f5f1c3fafa 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -9169,7 +9169,9 @@ vectorizable_load (stmt_vec_info stmt_info, gimple_stmt_iterator *gsi, || alignment_support_scheme == dr_explicit_realign) && !compute_in_loop) { - msq = vect_setup_realignment (first_stmt_info, gsi, &realignment_token, + msq = vect_setup_realignment (first_stmt_info_for_drptr + ? first_stmt_info_for_drptr + : first_stmt_info, gsi, &realignment_token, alignment_support_scheme, NULL_TREE, &at_loop); if (alignment_support_scheme == dr_explicit_realign_optimized)