public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/107302] New: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32
@ 2022-10-18  7:53 marxin at gcc dot gnu.org
  2022-10-18  7:53 ` [Bug tree-optimization/107302] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-18  7:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107302
           Summary: [13 Regression] ICE in as_a, at is-a.h:242 since
                    r13-3327-g46a8e017d048ec32
           Product: gcc
           Version: 13.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: ---

The following crashes:

$ cat tsvc.i
int a[0];
int s292_im1;

void
s292() {
  for (int i = 0; i < 2000; i++) {
    a[i] = s292_im1;
    s292_im1 = i;
  }
}

$ gcc tsvc.i -fno-tree-pre -O2
during GIMPLE pass: vect
tsvc.i: In function ‘s292’:
tsvc.i:5:1: internal compiler error: in as_a, at is-a.h:242
    5 | s292() {
      | ^~~~
0x7fa8a6 gimple_statement_with_memory_ops*
as_a<gimple_statement_with_memory_ops*, gimple>(gimple*)
        /home/marxin/Programming/gcc/gcc/is-a.h:242
0x7fde52 gphi* as_a<gphi*, gimple>(gimple*)
        /home/marxin/Programming/gcc/gcc/gimple-iterator.h:129
0x7fde52 gphi_iterator::phi() const
        /home/marxin/Programming/gcc/gcc/gimple-iterator.h:43
0x7fde52 vect_transform_loop(_loop_vec_info*, gimple*)
        /home/marxin/Programming/gcc/gcc/tree-vect-loop.cc:10894
0x124f32e vect_transform_loops
        /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1007
0x124f90f try_vectorize_loop_1
        /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1153
0x124f90f try_vectorize_loop
        /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1183
0x124fca4 execute
        /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1299
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug tree-optimization/107302] [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32
  2022-10-18  7:53 [Bug tree-optimization/107302] New: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32 marxin at gcc dot gnu.org
@ 2022-10-18  7:53 ` marxin at gcc dot gnu.org
  2022-10-18  7:54 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-18  7:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Target Milestone|---                         |13.0
   Last reconfirmed|                            |2022-10-18
             Status|UNCONFIRMED                 |NEW

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

* [Bug tree-optimization/107302] [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32
  2022-10-18  7:53 [Bug tree-optimization/107302] New: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32 marxin at gcc dot gnu.org
  2022-10-18  7:53 ` [Bug tree-optimization/107302] " marxin at gcc dot gnu.org
@ 2022-10-18  7:54 ` rguenth at gcc dot gnu.org
  2022-10-18 10:50 ` cvs-commit at gcc dot gnu.org
  2022-10-18 11:23 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-18  7:54 UTC (permalink / raw)
  To: gcc-bugs

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

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
           Priority|P3                          |P1
             Status|NEW                         |ASSIGNED

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.

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

* [Bug tree-optimization/107302] [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32
  2022-10-18  7:53 [Bug tree-optimization/107302] New: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32 marxin at gcc dot gnu.org
  2022-10-18  7:53 ` [Bug tree-optimization/107302] " marxin at gcc dot gnu.org
  2022-10-18  7:54 ` rguenth at gcc dot gnu.org
@ 2022-10-18 10:50 ` cvs-commit at gcc dot gnu.org
  2022-10-18 11:23 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-18 10:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:92ef7822bfd4ea3393e0a1dd40b4abef9fce027f

commit r13-3356-g92ef7822bfd4ea3393e0a1dd40b4abef9fce027f
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Oct 18 10:01:45 2022 +0200

    tree-optimization/107302 - fix vec_perm placement for recurrence vect

    The following fixes the VEC_PERM_EXPR placement when the latch
    definition is a PHI node.

            PR tree-optimization/107302
            * tree-vect-loop.cc (vectorizable_recurrence): Fix vec_perm
            placement for a PHI latch def.

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

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

* [Bug tree-optimization/107302] [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32
  2022-10-18  7:53 [Bug tree-optimization/107302] New: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-10-18 10:50 ` cvs-commit at gcc dot gnu.org
@ 2022-10-18 11:23 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-18 11:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2022-10-18 11:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18  7:53 [Bug tree-optimization/107302] New: [13 Regression] ICE in as_a, at is-a.h:242 since r13-3327-g46a8e017d048ec32 marxin at gcc dot gnu.org
2022-10-18  7:53 ` [Bug tree-optimization/107302] " marxin at gcc dot gnu.org
2022-10-18  7:54 ` rguenth at gcc dot gnu.org
2022-10-18 10:50 ` cvs-commit at gcc dot gnu.org
2022-10-18 11:23 ` 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).