[Bug tree-optimization/87931] New: [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug tree-optimization/87931] New: [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87931

            Bug ID: 87931
           Summary: [9 Regression] ICE in vectorizable_reduction, at
                    tree-vect-loop.c:6193 since r265876
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Following is ICEing:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/vect-outer-fir.c
-O3 -fno-tree-copy-prop -fgraphite-identity
during GIMPLE pass: vect
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/vect-outer-fir.c: In
function ‘fir’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vect/vect-outer-fir.c:37:6:
internal compiler error: in vectorizable_reduction, at tree-vect-loop.c:6193
   37 | void fir (){
      |      ^~~
0x156cd9e vectorizable_reduction(_stmt_vec_info*, gimple_stmt_iterator*,
_stmt_vec_info**, _slp_tree*, _slp_instance*, vec<stmt_info_for_cost, va_heap,
vl_ptr>*)
        /home/marxin/Programming/gcc/gcc/tree-vect-loop.c:6193
0x154d64a vect_analyze_stmt(_stmt_vec_info*, bool*, _slp_tree*, _slp_instance*,
vec<stmt_info_for_cost, va_heap, vl_ptr>*)
        /home/marxin/Programming/gcc/gcc/tree-vect-stmts.c:9543
0x155e51b vect_analyze_loop_operations
        /home/marxin/Programming/gcc/gcc/tree-vect-loop.c:1574
0x155f9d9 vect_analyze_loop_2
        /home/marxin/Programming/gcc/gcc/tree-vect-loop.c:1969
0x1560ff1 vect_analyze_loop(loop*, _loop_vec_info*, vec_info_shared*)
        /home/marxin/Programming/gcc/gcc/tree-vect-loop.c:2268
0x15a0fc8 try_vectorize_loop_1
        /home/marxin/Programming/gcc/gcc/tree-vectorizer.c:873
0x15a17af try_vectorize_loop
        /home/marxin/Programming/gcc/gcc/tree-vectorizer.c:1015
0x15a198b vectorize_loops()
        /home/marxin/Programming/gcc/gcc/tree-vectorizer.c:1097
0x13fb6a7 execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-loop.c:414
Reply | Threaded
Open this post in threaded view
|

[Bug tree-optimization/87931] [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87931

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2018-11-8
      Known to work|                            |8.2.0
   Target Milestone|---                         |9.0
      Known to fail|                            |9.0
Reply | Threaded
Open this post in threaded view
|

[Bug tree-optimization/87931] [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

asolokha at gmx dot com
In reply to this post by asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87931

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
Reply | Threaded
Open this post in threaded view
|

[Bug tree-optimization/87931] [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

asolokha at gmx dot com
In reply to this post by asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87931

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Might be related to this:

==6494==ERROR: AddressSanitizer: stack-buffer-overflow on address
0x7ffcf43dbd58 at pc 0x000002cfffdd bp 0x7ffcf43da650 sp 0x7ffcf43da648
READ of size 8 at 0x7ffcf43dbd58 thread T0
    #0 0x2cfffdc in vectorizable_reduction(_stmt_vec_info*,
gimple_stmt_iterator*, _stmt_vec_info**, _slp_tree*, _slp_instance*,
vec<stmt_info_for_cost, va_heap, vl_ptr>*)
../../trunk/gcc/tree-vect-loop.c:6485
Reply | Threaded
Open this post in threaded view
|

[Bug tree-optimization/87931] [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

asolokha at gmx dot com
In reply to this post by asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87931

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---

My asan error looks different to me. See new bug report 87953.
Reply | Threaded
Open this post in threaded view
|

[Bug tree-optimization/87931] [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

asolokha at gmx dot com
In reply to this post by asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87931

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
Reply | Threaded
Open this post in threaded view
|

[Bug tree-optimization/87931] [9 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6193 since r265876

asolokha at gmx dot com
In reply to this post by asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87931

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Nov 13 15:07:53 2018
New Revision: 266075

URL: https://gcc.gnu.org/viewcvs?rev=266075&root=gcc&view=rev
Log:
2018-11-13  Richard Biener  <[hidden email]>

        PR tree-optimization/87931
        * tree-vect-loop.c (vect_is_simple_reduction): Restrict
        nested cycles we support to latch computations vectorizable_reduction
        handles.

        * gcc.dg/graphite/pr87931.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr87931.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-loop.c