public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173
@ 2021-10-22  8:36 asolokha at gmx dot com
  2021-10-22  9:51 ` [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797 marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: asolokha at gmx dot com @ 2021-10-22  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102890
           Summary: [12 Regression] ICE in duplicate_and_interleave, at
                    tree-vect-slp.c:6173
           Product: gcc
           Version: 12.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: ---
            Target: aarch64-linux-gnu

gcc-12.0.0-alpha20211017 snapshot (g:5d4d64faa71a6389bfb76bfb3334b63360cf62c0)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c, w/ -march=armv8-a+sve -O2
-fassociative-math -fno-math-errno -fno-signed-zeros -fno-trapping-math:

float a[8], b[8], c[8];

void
f4 (float d_0, int f4_i)
{
  while (f4_i < 1)
    {
      a[3 * f4_i] = 1.0f
        + __builtin_copysignf(b[3 * f4_i], c[3 * f4_i])
        + __builtin_sqrtf (d_0);
      a[3 * f4_i + 1] = 2.0f
        + __builtin_copysignf(b[3 * f4_i + 1], c[3 * f4_i + 1])
        + __builtin_sqrtf (d_0);
      a[3 * f4_i + 2] = 3.0f
        + __builtin_copysignf(b[3 * f4_i + 2], c[3 * f4_i + 2])
        + __builtin_sqrtf (d_0);
      ++f4_i;
    }
}

% aarch64-linux-gnu-gcc-12.0.0 -march=armv8-a+sve -O2 -fassociative-math
-fno-math-errno -fno-signed-zeros -fno-trapping-math -c bd4s9dy9.c
during GIMPLE pass: vect
bd4s9dy9.c: In function 'f4':
bd4s9dy9.c:4:1: internal compiler error: in duplicate_and_interleave, at
tree-vect-slp.c:6173
    4 | f4 (float d_0, int f4_i)
      | ^~
0x7e6dcf duplicate_and_interleave(vec_info*, gimple**, tree_node*,
vec<tree_node*, va_heap, vl_ptr> const&, unsigned int, vec<tree_node*, va_heap,
vl_ptr>&)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:6173
0x120360e vect_create_constant_vectors
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:6394
0x120360e vect_schedule_slp_node
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:7099
0x121525f vect_schedule_scc
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:7417
0x1215e51 vect_schedule_scc
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:7434
0x1215e51 vect_schedule_scc
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:7434
0x1215e51 vect_schedule_scc
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:7434
0x121673f vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr>
const&)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-slp.c:7570
0x11ef0a9 vect_transform_loop(_loop_vec_info*, gimple*)
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vect-loop.c:9685
0x122251f try_vectorize_loop_1
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vectorizer.c:1110
0x1223141 vectorize_loops()
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20211017/work/gcc-12-20211017/gcc/tree-vectorizer.c:1249

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
@ 2021-10-22  9:51 ` marxin at gcc dot gnu.org
  2021-10-22 11:45 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-22  9:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
            Summary|[12 Regression] ICE in      |[12 Regression] ICE in
                   |duplicate_and_interleave,   |duplicate_and_interleave,
                   |at tree-vect-slp.c:6173     |at tree-vect-slp.c:6173
                   |                            |since
                   |                            |r12-1329-gce670e4faafb296d1
                   |                            |f1a7828d20f8c8ba4686797
   Last reconfirmed|                            |2021-10-22

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
With -Ofast it started with r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797.

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
  2021-10-22  9:51 ` [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797 marxin at gcc dot gnu.org
@ 2021-10-22 11:45 ` rguenth at gcc dot gnu.org
  2021-10-22 11:54 ` rsandifo at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-22 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org
   Target Milestone|---                         |12.0
           Priority|P3                          |P2

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hum, the function is Richards area, possibly we trigger a latent issue here.

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
  2021-10-22  9:51 ` [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797 marxin at gcc dot gnu.org
  2021-10-22 11:45 ` rguenth at gcc dot gnu.org
@ 2021-10-22 11:54 ` rsandifo at gcc dot gnu.org
  2022-04-26  8:50 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2021-10-22 11:54 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rsandifo at gcc dot gnu.org

--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
I'll take a look in stage 3 (if not earlier).

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2021-10-22 11:54 ` rsandifo at gcc dot gnu.org
@ 2022-04-26  8:50 ` jakub at gcc dot gnu.org
  2022-04-26  8:53 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-04-26  8:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Any progress on this?
Why is it a P2 rather than P1?

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2022-04-26  8:50 ` jakub at gcc dot gnu.org
@ 2022-04-26  8:53 ` rguenth at gcc dot gnu.org
  2022-04-26  8:56 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-26  8:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Probably fat-fingered the priority change.

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
                   ` (4 preceding siblings ...)
  2022-04-26  8:53 ` rguenth at gcc dot gnu.org
@ 2022-04-26  8:56 ` rguenth at gcc dot gnu.org
  2022-04-26  8:58 ` rguenth at gcc dot gnu.org
  2022-04-26  8:59 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-26  8:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hmm, I can no longer reproduce it?  What fixed it?

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
                   ` (5 preceding siblings ...)
  2022-04-26  8:56 ` rguenth at gcc dot gnu.org
@ 2022-04-26  8:58 ` rguenth at gcc dot gnu.org
  2022-04-26  8:59 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-26  8:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Probably a dup of the fixed PR104152.

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

* [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797
  2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
                   ` (6 preceding siblings ...)
  2022-04-26  8:58 ` rguenth at gcc dot gnu.org
@ 2022-04-26  8:59 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-26  8:59 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed by reverting its fix.

*** This bug has been marked as a duplicate of bug 104152 ***

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

end of thread, other threads:[~2022-04-26  8:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22  8:36 [Bug tree-optimization/102890] New: [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 asolokha at gmx dot com
2021-10-22  9:51 ` [Bug tree-optimization/102890] [12 Regression] ICE in duplicate_and_interleave, at tree-vect-slp.c:6173 since r12-1329-gce670e4faafb296d1f1a7828d20f8c8ba4686797 marxin at gcc dot gnu.org
2021-10-22 11:45 ` rguenth at gcc dot gnu.org
2021-10-22 11:54 ` rsandifo at gcc dot gnu.org
2022-04-26  8:50 ` jakub at gcc dot gnu.org
2022-04-26  8:53 ` rguenth at gcc dot gnu.org
2022-04-26  8:56 ` rguenth at gcc dot gnu.org
2022-04-26  8:58 ` rguenth at gcc dot gnu.org
2022-04-26  8:59 ` 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).