[Bug tree-optimization/91790] ICE: verify_ssa failed (error: definition in block 2 follows the use)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 17 07:40:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91790

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-09-17
             Blocks|                            |53947
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
            Summary|ICE: Segmentation fault (in |ICE: verify_ssa failed
                   |vr_values::vrp_visit_assign |(error: definition in block
                   |ment_or_call), or ICE:      |2 follows the use)
                   |verify_ssa failed (error:   |
                   |definition in block 2       |
                   |follows the use)            |
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Clearly a vectorizer issue.  Somewhat oldish.  Fix

Index: gcc/tree-vect-stmts.c
===================================================================
--- gcc/tree-vect-stmts.c       (revision 275747)
+++ gcc/tree-vect-stmts.c       (working copy)
@@ -9169,7 +9169,9 @@ vectorizable_load (stmt_vec_info stmt_in
        || 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)


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
[Bug 53947] [meta-bug] vectorizer missed-optimizations


More information about the Gcc-bugs mailing list