public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/104716] New: ICE in copy_loop_before, at tree-loop-distribution.cc:952
@ 2022-02-28 12:07 asolokha at gmx dot com
  2022-02-28 13:00 ` [Bug tree-optimization/104716] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2022-02-28 12:07 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104716
           Summary: ICE in copy_loop_before, at
                    tree-loop-distribution.cc:952
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gfortran 12.0.1 20220227 snapshot (g:d1574a9b820f17adb9004255e2018967e9be063b)
ICEs when compiling the following testcase w/ -O2 -ftree-loop-distribution
-fno-move-loop-stores -fno-tree-dominator-opts:

      SUBROUTINE FOO()

      COMMON /WORK/ C2(2, 2)

      DIMENSION D11(2)

      EQUIVALENCE (D11(1), C2(1, 1))

      DO 40 I = 1, 2
         DO 30 J = 1, 2
            ASSIGN 10 TO ILBL
            IF (C2(J, I) .NE. 0.0) THEN
               ASSIGN 20 TO ILBL
            ENDIF
            GO TO ILBL
 10         CONTINUE
 20         CONTINUE
            C2(J, I) = C2(J, I) + 1
 30      CONTINUE
 40   CONTINUE

      DO 50 I = 1, 2
         PRINT 90, I
 50   CONTINUE

      RETURN
 90   FORMAT(I5)
      END

% gfortran-12.0.1 -O2 -ftree-loop-distribution -fno-move-loop-stores
-fno-tree-dominator-opts -w -c umdmfg43.f
during GIMPLE pass: ldist
umdmfg43.f:1:20:

    1 |       SUBROUTINE FOO()
      |                    ^
internal compiler error: in copy_loop_before, at tree-loop-distribution.cc:952
0x740892 copy_loop_before
       
/var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/tree-loop-distribution.cc:952
0x740892 generate_loops_for_partition
       
/var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/tree-loop-distribution.cc:988
0x740892 generate_code_for_partition
       
/var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/tree-loop-distribution.cc:1348
0x740892 loop_distribution::distribute_loop(loop*, vec<gimple*, va_heap,
vl_ptr> const&, control_dependences*, int*, bool*, bool)
       
/var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/tree-loop-distribution.cc:3167
0xff7caf loop_distribution::execute(function*)
       
/var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/tree-loop-distribution.cc:3816
0xff899b execute
       
/var/tmp/portage/sys-devel/gcc-12.0.1_p20220227/work/gcc-12-20220227/gcc/tree-loop-distribution.cc:3905

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

* [Bug tree-optimization/104716] ICE in copy_loop_before, at tree-loop-distribution.cc:952
  2022-02-28 12:07 [Bug tree-optimization/104716] New: ICE in copy_loop_before, at tree-loop-distribution.cc:952 asolokha at gmx dot com
@ 2022-02-28 13:00 ` jakub at gcc dot gnu.org
  2022-03-01  8:01 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-28 13:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-02-28
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started to ICE with r12-3903-g0288527f47cec6698b31ccb3210816415506009e
but unsure if we can call it a regression, because -fno-move-loop-stores wasn't
in GCC 11.

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

* [Bug tree-optimization/104716] ICE in copy_loop_before, at tree-loop-distribution.cc:952
  2022-02-28 12:07 [Bug tree-optimization/104716] New: ICE in copy_loop_before, at tree-loop-distribution.cc:952 asolokha at gmx dot com
  2022-02-28 13:00 ` [Bug tree-optimization/104716] " jakub at gcc dot gnu.org
@ 2022-03-01  8:01 ` rguenth at gcc dot gnu.org
  2022-03-01 14:25 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-01  8:01 UTC (permalink / raw)
  To: gcc-bugs

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

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
           Keywords|                            |ice-on-valid-code
             Status|NEW                         |ASSIGNED

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look to see whether this is a latent issue.

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

* [Bug tree-optimization/104716] ICE in copy_loop_before, at tree-loop-distribution.cc:952
  2022-02-28 12:07 [Bug tree-optimization/104716] New: ICE in copy_loop_before, at tree-loop-distribution.cc:952 asolokha at gmx dot com
  2022-02-28 13:00 ` [Bug tree-optimization/104716] " jakub at gcc dot gnu.org
  2022-03-01  8:01 ` rguenth at gcc dot gnu.org
@ 2022-03-01 14:25 ` cvs-commit at gcc dot gnu.org
  2022-03-01 14:26 ` rguenth at gcc dot gnu.org
  2022-03-04  1:42 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-01 14:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:54ef95cc4d1f3f2cde7c1f13250f889ffb81ca75

commit r12-7432-g54ef95cc4d1f3f2cde7c1f13250f889ffb81ca75
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Mar 1 09:24:26 2022 +0100

    tree-optimization/104716 - check if we can copy loop in loop distribution

    The following checks whether we can copy the loop before attempting
    to do so in loop distribution.  In the testcase there's a computed
    goto and thus abnormal edges which we cannot redirect.

    2022-03-01  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/104716
            * tree-loop-distribution.cc (find_seed_stmts_for_distribution):
            Check if we can copy the loop.

            * gfortran.dg/pr104716.f: New testcase.

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

* [Bug tree-optimization/104716] ICE in copy_loop_before, at tree-loop-distribution.cc:952
  2022-02-28 12:07 [Bug tree-optimization/104716] New: ICE in copy_loop_before, at tree-loop-distribution.cc:952 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-03-01 14:25 ` cvs-commit at gcc dot gnu.org
@ 2022-03-01 14:26 ` rguenth at gcc dot gnu.org
  2022-03-04  1:42 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-01 14:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for GCC 12 (but latent).

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

* [Bug tree-optimization/104716] ICE in copy_loop_before, at tree-loop-distribution.cc:952
  2022-02-28 12:07 [Bug tree-optimization/104716] New: ICE in copy_loop_before, at tree-loop-distribution.cc:952 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2022-03-01 14:26 ` rguenth at gcc dot gnu.org
@ 2022-03-04  1:42 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-03-04  1:42 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

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

end of thread, other threads:[~2022-03-04  1:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28 12:07 [Bug tree-optimization/104716] New: ICE in copy_loop_before, at tree-loop-distribution.cc:952 asolokha at gmx dot com
2022-02-28 13:00 ` [Bug tree-optimization/104716] " jakub at gcc dot gnu.org
2022-03-01  8:01 ` rguenth at gcc dot gnu.org
2022-03-01 14:25 ` cvs-commit at gcc dot gnu.org
2022-03-01 14:26 ` rguenth at gcc dot gnu.org
2022-03-04  1:42 ` pinskia 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).