public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247
@ 2021-06-22  4:06 asolokha at gmx dot com
  2021-06-22  6:54 ` [Bug tree-optimization/101158] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: asolokha at gmx dot com @ 2021-06-22  4:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101158
           Summary: ICE in gimple_call_arg, at gimple.h:3247
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-checking, 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: ---
            Target: aarch64-linux-gnu

gfortran-12.0.0-alpha20210620 snapshot
(g:69d80f0f2f0bb8a88cd82d8ab6c4b92cf8013ca1) ICEs when compiling the following
testcase w/ -march=armv8-a+sve -O1 -ftree-slp-vectorize -fwrapv:

subroutine sprpl5 (left)
  implicit none

  integer :: left
  integer :: avail1, avail2, delx1, delx2, i2, ic

  ic = left
  delx1 = ic / 2
  delx2 = delx1 + 1
  i2 = ic + delx2
  avail1 = i2
  avail2 = 1

  do delx1 = 1, 2
     ic = left + nint (real (left) / 2)
     if (ic .ge. avail1) avail1 = ic + 1

     i2 = ic + delx2
     if (i2 .le. avail2) avail2 = i2 + 1
  end do
end subroutine sprpl5

% aarch64-linux-gnu-gfortran-12.0.0 -march=armv8-a+sve -O1 -ftree-slp-vectorize
-fwrapv -c nlkl20vf.f90
during GIMPLE pass: slp
nlkl20vf.f90:1:17:

    1 | subroutine sprpl5 (left)
      |                 ^
internal compiler error: in gimple_call_arg, at gimple.h:3247
0x7cfe44 gimple_call_arg
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/gimple.h:3247
0x7d0f6a gimple_call_arg
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree.h:3540
0x7d0f6a vect_build_slp_tree_1
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:1139
0x1255f91 vect_build_slp_tree_2
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:1744
0x1255940 vect_build_slp_tree
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:1581
0x12561c9 vect_build_slp_tree_2
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:2235
0x1255940 vect_build_slp_tree
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:1581
0x125a2bd vect_build_slp_instance
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:3006
0x1260dd4 vect_analyze_slp(vec_info*, unsigned int)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:3368
0x1265f30 vect_slp_analyze_bb_1
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:5556
0x1265f30 vect_slp_region
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:5657
0x1265f30 vect_slp_bbs
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:5807
0x1267a5c vect_slp_function(function*)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vect-slp.c:5893
0x126e9fa execute
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/tree-vectorizer.c:1445

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

* [Bug tree-optimization/101158] ICE in gimple_call_arg, at gimple.h:3247
  2021-06-22  4:06 [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247 asolokha at gmx dot com
@ 2021-06-22  6:54 ` rguenth at gcc dot gnu.org
  2021-06-22  9:01 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-22  6:54 UTC (permalink / raw)
  To: gcc-bugs

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

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
   Last reconfirmed|                            |2021-06-22
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED

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

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

* [Bug tree-optimization/101158] ICE in gimple_call_arg, at gimple.h:3247
  2021-06-22  4:06 [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247 asolokha at gmx dot com
  2021-06-22  6:54 ` [Bug tree-optimization/101158] " rguenth at gcc dot gnu.org
@ 2021-06-22  9:01 ` cvs-commit at gcc dot gnu.org
  2021-06-22  9:04 ` [Bug tree-optimization/101158] [10/11 Regression] " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-22  9:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:7a22d8a764418265680a6bb9a9aec31e984eb015

commit r12-1715-g7a22d8a764418265680a6bb9a9aec31e984eb015
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Jun 22 09:24:24 2021 +0200

    tree-optimization/101158 - adjust SLP call matching sequence

    This moves the check for same operands after verifying we're
    facing compatible calls.

    2021-06-22  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/101158
            * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
            checking after checking for matching operation.

            * gfortran.dg/pr101158.f90: New testcase.

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

* [Bug tree-optimization/101158] [10/11 Regression] ICE in gimple_call_arg, at gimple.h:3247
  2021-06-22  4:06 [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247 asolokha at gmx dot com
  2021-06-22  6:54 ` [Bug tree-optimization/101158] " rguenth at gcc dot gnu.org
  2021-06-22  9:01 ` cvs-commit at gcc dot gnu.org
@ 2021-06-22  9:04 ` rguenth at gcc dot gnu.org
  2021-06-25  9:06 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-22  9:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in gimple_call_arg, at  |[10/11 Regression] ICE in
                   |gimple.h:3247               |gimple_call_arg, at
                   |                            |gimple.h:3247
           Priority|P3                          |P2
   Target Milestone|---                         |10.4
      Known to work|                            |12.0

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk, I think the issue is latent in GCC 11 and GCC 10.

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

* [Bug tree-optimization/101158] [10/11 Regression] ICE in gimple_call_arg, at gimple.h:3247
  2021-06-22  4:06 [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2021-06-22  9:04 ` [Bug tree-optimization/101158] [10/11 Regression] " rguenth at gcc dot gnu.org
@ 2021-06-25  9:06 ` cvs-commit at gcc dot gnu.org
  2022-02-17 10:48 ` [Bug tree-optimization/101158] [10 " cvs-commit at gcc dot gnu.org
  2022-02-17 10:51 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-25  9:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:48097089ae539bd5c2649681f93ce4a6bad72b11

commit r11-8655-g48097089ae539bd5c2649681f93ce4a6bad72b11
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Jun 22 09:24:24 2021 +0200

    tree-optimization/101158 - adjust SLP call matching sequence

    This moves the check for same operands after verifying we're
    facing compatible calls.

    2021-06-22  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/101158
            * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
            checking after checking for matching operation.

            * gfortran.dg/pr101158.f90: New testcase.

    (cherry picked from commit 7a22d8a764418265680a6bb9a9aec31e984eb015)

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

* [Bug tree-optimization/101158] [10 Regression] ICE in gimple_call_arg, at gimple.h:3247
  2021-06-22  4:06 [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2021-06-25  9:06 ` cvs-commit at gcc dot gnu.org
@ 2022-02-17 10:48 ` cvs-commit at gcc dot gnu.org
  2022-02-17 10:51 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-02-17 10:48 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:578bc9d1cdd91694e4da393d32f0fddd213a6042

commit r10-10460-g578bc9d1cdd91694e4da393d32f0fddd213a6042
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Jun 22 09:24:24 2021 +0200

    tree-optimization/101158 - adjust SLP call matching sequence

    This moves the check for same operands after verifying we're
    facing compatible calls.

    2021-06-22  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/101158
            * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
            checking after checking for matching operation.

            * gfortran.dg/pr101158.f90: New testcase.

    (cherry picked from commit 7a22d8a764418265680a6bb9a9aec31e984eb015)

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

* [Bug tree-optimization/101158] [10 Regression] ICE in gimple_call_arg, at gimple.h:3247
  2021-06-22  4:06 [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247 asolokha at gmx dot com
                   ` (4 preceding siblings ...)
  2022-02-17 10:48 ` [Bug tree-optimization/101158] [10 " cvs-commit at gcc dot gnu.org
@ 2022-02-17 10:51 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-17 10:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |10.3.1
         Resolution|---                         |FIXED

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

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

end of thread, other threads:[~2022-02-17 10:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22  4:06 [Bug tree-optimization/101158] New: ICE in gimple_call_arg, at gimple.h:3247 asolokha at gmx dot com
2021-06-22  6:54 ` [Bug tree-optimization/101158] " rguenth at gcc dot gnu.org
2021-06-22  9:01 ` cvs-commit at gcc dot gnu.org
2021-06-22  9:04 ` [Bug tree-optimization/101158] [10/11 Regression] " rguenth at gcc dot gnu.org
2021-06-25  9:06 ` cvs-commit at gcc dot gnu.org
2022-02-17 10:48 ` [Bug tree-optimization/101158] [10 " cvs-commit at gcc dot gnu.org
2022-02-17 10:51 ` 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).