public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def,  at tree-ssa-loop-manip.c:726 with -O3
@ 2020-11-30  6:43 vsevolod.livinskij at frtk dot ru
  2020-11-30  8:15 ` [Bug tree-optimization/98064] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: vsevolod.livinskij at frtk dot ru @ 2020-11-30  6:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98064
           Summary: ICE in check_loop_closed_ssa_def, at
                    tree-ssa-loop-manip.c:726 with -O3
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vsevolod.livinskij at frtk dot ru
  Target Milestone: ---

Error:
>$ g++ -c -O3 func.cpp
during GIMPLE pass: slp
func.cpp: In function ‘void test()’:
func.cpp:8:6: internal compiler error: in check_loop_closed_ssa_def, at
tree-ssa-loop-manip.c:726
    8 | void test() {
      |      ^~~~
0x84b706 check_loop_closed_ssa_def
        /home/vlivinsk/workspace/gcc/gcc_src/gcc/tree-ssa-loop-manip.c:726
0x12ae78d check_loop_closed_ssa_bb
        /home/vlivinsk/workspace/gcc/gcc_src/gcc/tree-ssa-loop-manip.c:752
0x12b05d6 verify_loop_closed_ssa(bool, loop*)
        /home/vlivinsk/workspace/gcc/gcc_src/gcc/tree-ssa-loop-manip.c:777
0x12b05d6 verify_loop_closed_ssa(bool, loop*)
        /home/vlivinsk/workspace/gcc/gcc_src/gcc/tree-ssa-loop-manip.c:761
0x1062c24 execute_function_todo
        /home/vlivinsk/workspace/gcc/gcc_src/gcc/passes.c:2057
0x10638ae execute_todo
        /home/vlivinsk/workspace/gcc/gcc_src/gcc/passes.c:2093
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reproducer:
#include <algorithm>
extern long var_2;
extern int var_3, var_8;
extern long long var_5;
extern unsigned short arr_353[];
extern short arr_362[];
extern int arr_518[];
void test() {
    for (char d = 0; d < 013; d += 4) {
        for (char e = 0; e < 11; e++)
            arr_353[e] = var_2 | std::min((long long)7, var_5);
        for (int f = var_5; f; f += 4)
            for (short g = var_8; g; g++)
                arr_362[g] = 0;
    }
    for (short h = 5; (short)var_2; h += 5)
        arr_518[h] = 0;
}


gcc version 11.0.0 20201126 (beb9afcaf1466996a301c778596c5df209e7913c)

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

* [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3
  2020-11-30  6:43 [Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 vsevolod.livinskij at frtk dot ru
@ 2020-11-30  8:15 ` rguenth at gcc dot gnu.org
  2020-11-30  9:12 ` [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 since r11-4921-g86cca5cc14602814 marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-30  8:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.

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

* [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 since r11-4921-g86cca5cc14602814
  2020-11-30  6:43 [Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 vsevolod.livinskij at frtk dot ru
  2020-11-30  8:15 ` [Bug tree-optimization/98064] " rguenth at gcc dot gnu.org
@ 2020-11-30  9:12 ` marxin at gcc dot gnu.org
  2020-11-30 11:58 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-30  9:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in                      |ICE in
                   |check_loop_closed_ssa_def,  |check_loop_closed_ssa_def,
                   |at                          |at
                   |tree-ssa-loop-manip.c:726   |tree-ssa-loop-manip.c:726
                   |with -O3                    |with -O3 since
                   |                            |r11-4921-g86cca5cc14602814
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
For the record, started with r11-4921-g86cca5cc14602814.

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

* [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 since r11-4921-g86cca5cc14602814
  2020-11-30  6:43 [Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 vsevolod.livinskij at frtk dot ru
  2020-11-30  8:15 ` [Bug tree-optimization/98064] " rguenth at gcc dot gnu.org
  2020-11-30  9:12 ` [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 since r11-4921-g86cca5cc14602814 marxin at gcc dot gnu.org
@ 2020-11-30 11:58 ` rguenth at gcc dot gnu.org
  2020-11-30 13:30 ` cvs-commit at gcc dot gnu.org
  2020-11-30 13:30 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-30 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

t.C:11:24: note: extracting lane for live stmt _201 = (signed short) pretmp_25;

where the vectorized def of this out-of-loop definition is in-loop and thus
replacing its uses would require a LC-SSA def.

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

* [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 since r11-4921-g86cca5cc14602814
  2020-11-30  6:43 [Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 vsevolod.livinskij at frtk dot ru
                   ` (2 preceding siblings ...)
  2020-11-30 11:58 ` rguenth at gcc dot gnu.org
@ 2020-11-30 13:30 ` cvs-commit at gcc dot gnu.org
  2020-11-30 13:30 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-11-30 13:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 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:ebbe3f29518854c36574adbd4fa82fd56fa64056

commit r11-5542-gebbe3f29518854c36574adbd4fa82fd56fa64056
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Nov 30 13:39:59 2020 +0100

    tree-optimization/98064 - fix BB SLP live lane extract wrt LC SSA

    This avoids breaking LC SSA when SLP codegen pulled an out-of-loop
    def into a loop when merging with in-loop defs for an external def.

    2020-11-30  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/98064
            * tree-vect-loop.c (vectorizable_live_operation): Avoid
            breaking LC SSA for BB vectorization.

            * g++.dg/vect/pr98064.cc: New testcase.

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

* [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 since r11-4921-g86cca5cc14602814
  2020-11-30  6:43 [Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 vsevolod.livinskij at frtk dot ru
                   ` (3 preceding siblings ...)
  2020-11-30 13:30 ` cvs-commit at gcc dot gnu.org
@ 2020-11-30 13:30 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-30 13:30 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

end of thread, other threads:[~2020-11-30 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30  6:43 [Bug tree-optimization/98064] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 vsevolod.livinskij at frtk dot ru
2020-11-30  8:15 ` [Bug tree-optimization/98064] " rguenth at gcc dot gnu.org
2020-11-30  9:12 ` [Bug tree-optimization/98064] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:726 with -O3 since r11-4921-g86cca5cc14602814 marxin at gcc dot gnu.org
2020-11-30 11:58 ` rguenth at gcc dot gnu.org
2020-11-30 13:30 ` cvs-commit at gcc dot gnu.org
2020-11-30 13:30 ` 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).