public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/97241] New: [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503
@ 2020-09-29 12:04 asolokha at gmx dot com
  2020-09-29 12:37 ` [Bug tree-optimization/97241] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2020-09-29 12:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97241
           Summary: [11 Regression] ICE in vectorizable_reduction, at
                    tree-vect-loop.c:6503
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-11.0.0-alpha20200927 snapshot (g:e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4)
ICEs when compiling the following testcase w/ -O3 --param
max-loop-header-insns=2:

short int *ev;
int l4;

short int
a7 (void)
{
  short int uo = ev[0], ie = uo;

  for (int kp = 0; kp < l4; kp += 4)
    {
      uo += ev[kp + 1];
      ie += ev[kp];
    }

  return uo + ie;
}

% gcc-11.0.0 -O3 --param max-loop-header-insns=2 -c u56c7vpf.c
during GIMPLE pass: vect
u56c7vpf.c: In function 'a7':
u56c7vpf.c:5:1: internal compiler error: in vectorizable_reduction, at
tree-vect-loop.c:6503
    5 | a7 (void)
      | ^~
0x70b14d vectorizable_reduction(_loop_vec_info*, _stmt_vec_info*, _slp_tree*,
_slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-loop.c:6503
0x1012baf vect_analyze_stmt(vec_info*, _stmt_vec_info*, bool*, _slp_tree*,
_slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-stmts.c:10718
0x1046a5b vect_slp_analyze_node_operations_1
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-slp.c:2814
0x1046a5b vect_slp_analyze_node_operations
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-slp.c:2948
0x1046946 vect_slp_analyze_node_operations
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-slp.c:2940
0x1046946 vect_slp_analyze_node_operations
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-slp.c:2940
0x1046946 vect_slp_analyze_node_operations
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-slp.c:2940
0x1048b06 vect_slp_analyze_operations(vec_info*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-slp.c:3129
0x102bf43 vect_analyze_loop_2
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-loop.c:2338
0x102bf43 vect_analyze_loop(loop*, vec_info_shared*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vect-loop.c:2799
0x104f761 try_vectorize_loop_1
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vectorizer.c:999
0x10501c1 vectorize_loops()
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/tree-vectorizer.c:1234

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/97241] [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503
  2020-09-29 12:04 [Bug tree-optimization/97241] New: [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 asolokha at gmx dot com
@ 2020-09-29 12:37 ` rguenth at gcc dot gnu.org
  2020-09-29 14:09 ` [Bug tree-optimization/97241] [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 since r11-564-g79f0451c67e8ed56 marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29 12:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |11.0
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-09-29

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.  Hacks pay back :/  Wonder what caused it.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/97241] [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 since r11-564-g79f0451c67e8ed56
  2020-09-29 12:04 [Bug tree-optimization/97241] New: [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 asolokha at gmx dot com
  2020-09-29 12:37 ` [Bug tree-optimization/97241] " rguenth at gcc dot gnu.org
@ 2020-09-29 14:09 ` marxin at gcc dot gnu.org
  2020-09-29 14:16 ` cvs-commit at gcc dot gnu.org
  2020-09-29 14:17 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-29 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
            Summary|[11 Regression] ICE in      |[11 Regression] ICE in
                   |vectorizable_reduction, at  |vectorizable_reduction, at
                   |tree-vect-loop.c:6503       |tree-vect-loop.c:6503 since
                   |                            |r11-564-g79f0451c67e8ed56

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r11-564-g79f0451c67e8ed56.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/97241] [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 since r11-564-g79f0451c67e8ed56
  2020-09-29 12:04 [Bug tree-optimization/97241] New: [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 asolokha at gmx dot com
  2020-09-29 12:37 ` [Bug tree-optimization/97241] " rguenth at gcc dot gnu.org
  2020-09-29 14:09 ` [Bug tree-optimization/97241] [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 since r11-564-g79f0451c67e8ed56 marxin at gcc dot gnu.org
@ 2020-09-29 14:16 ` cvs-commit at gcc dot gnu.org
  2020-09-29 14:17 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-29 14:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:39a27bb01aa223ce89946f0a4de6b60c4c0b03d2

commit r11-3527-g39a27bb01aa223ce89946f0a4de6b60c4c0b03d2
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Sep 29 15:02:47 2020 +0200

    tree-optimization/97241 - fix ICE in reduction vectorization

    The following moves an ad-hoc attempt at discovering the SLP node
    for a stmt to the place where we can find it in lock-step when
    we find the stmt itself.

    2020-09-29  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97241
            * tree-vect-loop.c (vectorizable_reduction): Move finding
            the SLP node for the reduction stmt to a better place.

            * gcc.dg/vect/pr97241.c: New testcase.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/97241] [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 since r11-564-g79f0451c67e8ed56
  2020-09-29 12:04 [Bug tree-optimization/97241] New: [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2020-09-29 14:16 ` cvs-commit at gcc dot gnu.org
@ 2020-09-29 14:17 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29 14:17 UTC (permalink / raw)
  To: gcc-bugs

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

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-29 14:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 12:04 [Bug tree-optimization/97241] New: [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 asolokha at gmx dot com
2020-09-29 12:37 ` [Bug tree-optimization/97241] " rguenth at gcc dot gnu.org
2020-09-29 14:09 ` [Bug tree-optimization/97241] [11 Regression] ICE in vectorizable_reduction, at tree-vect-loop.c:6503 since r11-564-g79f0451c67e8ed56 marxin at gcc dot gnu.org
2020-09-29 14:16 ` cvs-commit at gcc dot gnu.org
2020-09-29 14:17 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).