re PR tree-optimization/91790 (ICE: verify_ssa failed (error: definition in block...
authorRichard Biener <rguenther@suse.de>
Tue, 17 Sep 2019 08:08:40 +0000 (08:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 17 Sep 2019 08:08:40 +0000 (08:08 +0000)
2019-09-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91790
* tree-vect-stmts.c (vectorizable_load): For BB vectorization
use the correct DR for setting up realignment.

From-SVN: r275798

gcc/ChangeLog
gcc/tree-vect-stmts.c

index 2f4de49fe8569400f4c235e46ab0dacb0daba2d1..3a9e63783f391f491cf7932b8bbe923880c6330f 100644 (file)
@@ -1,3 +1,9 @@
+2019-09-17  Richard Biener  <rguenther@suse.de>
+
+       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  <ubizjak@gmail.com>
 
        PR target/91719
index edc7e0de4d3e3566ece216d83e1c2a09865e0556..7f5f1c3fafaffc3f62b255160a794bf94fc7f98e 100644 (file)
@@ -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)