public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
@ 2020-09-29  7:12 rguenth at gcc dot gnu.org
  2020-09-29  7:13 ` [Bug tree-optimization/97236] " rguenth at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29  7:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97236
           Summary: [10/11 Regression] g:e93428a8b056aed83a7678 triggers
                    vlc miscompile
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

According to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971027

No testcase or confirmation yet.

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
@ 2020-09-29  7:13 ` rguenth at gcc dot gnu.org
  2020-09-29 13:05 ` marxin at gcc dot gnu.org
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29  7:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|---                         |10.3
                 CC|                            |doko at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
             Target|                            |x86_64-*-*

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
  2020-09-29  7:13 ` [Bug tree-optimization/97236] " rguenth at gcc dot gnu.org
@ 2020-09-29 13:05 ` marxin at gcc dot gnu.org
  2020-09-29 13:05 ` marxin at gcc dot gnu.org
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-29 13:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 49287
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49287&action=edit
Reduced test-case

Reduced test-case that started to fail on master with r11-205-gbc484e250990393e
with -O3.

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
  2020-09-29  7:13 ` [Bug tree-optimization/97236] " rguenth at gcc dot gnu.org
  2020-09-29 13:05 ` marxin at gcc dot gnu.org
@ 2020-09-29 13:05 ` marxin at gcc dot gnu.org
  2020-09-29 13:06 ` marxin at gcc dot gnu.org
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-29 13:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 49288
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49288&action=edit
Another test-case

Another test-case that started to fail with r10-1361-g9f962469cabc7fdc.

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-09-29 13:05 ` marxin at gcc dot gnu.org
@ 2020-09-29 13:06 ` marxin at gcc dot gnu.org
  2020-09-29 13:46 ` rguenth at gcc dot gnu.org
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-29 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-09-29
             Status|UNCONFIRMED                 |NEW

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-09-29 13:06 ` marxin at gcc dot gnu.org
@ 2020-09-29 13:46 ` rguenth at gcc dot gnu.org
  2020-09-29 14:14 ` rguenth at gcc dot gnu.org
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29 13:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
typedef unsigned char __uint8_t;
typedef __uint8_t uint8_t;
typedef struct plane_t {
  uint8_t *p_pixels;
  int i_lines;
  int i_pitch;
} plane_t;

typedef struct {
  plane_t p[5];
} picture_t;

#define N 4

void __attribute__((noipa))
picture_Clone(picture_t *picture, picture_t *res)
{
  for (int i = 0; i < N; i++) {
    res->p[i].p_pixels = picture->p[i].p_pixels;
    res->p[i].i_lines = picture->p[i].i_lines;
    res->p[i].i_pitch = picture->p[i].i_pitch;
  }
}

int
main()
{
  picture_t aaa, bbb;
  uint8_t pixels[10] = {1, 1, 1, 1, 1, 1, 1, 1};

  for (unsigned i = 0; i < N; i++)
    aaa.p[i].p_pixels = pixels;

  picture_Clone (&aaa, &bbb);

  uint8_t c;
  for (unsigned i = 0; i < N; i++)
    c += bbb.p[i].p_pixels[0];

  if (c != N)
    __builtin_abort ();
  return 0;
}

ends up with a NULL pointer in bb.p[1].p_pixels

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2020-09-29 13:46 ` rguenth at gcc dot gnu.org
@ 2020-09-29 14:14 ` rguenth at gcc dot gnu.org
  2020-09-30  9:20 ` rguenth at gcc dot gnu.org
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29 14:14 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
So what goes wrong is the single-element interleaving code-gen for the pointer
copy.  We have

t.c:18:21: note:   Detected single element interleaving
picture_7(D)->p[i_18].p_pixels step 16

but for the store:

t.c:18:21: missed:   not consecutive access res_8(D)->p[i_18].p_pixels = _1;
t.c:18:21: note:   using strided accesses

...

t.c:18:21: note:   ==> examining statement: _1 =
picture_7(D)->p[i_18].p_pixels;
t.c:18:21: note:   vect_model_load_cost: aligned.
t.c:18:21: note:   vect_model_load_cost: inside_cost = 24, prologue_cost = 0 .

and in group get-load-store type we handle it as (V1DI)

      if (!STMT_VINFO_STRIDED_P (first_stmt_info)
          && (can_overrun_p || !would_overrun_p)
          && compare_step_with_zero (vinfo, stmt_info) > 0)
        {
          /* First cope with the degenerate case of a single-element
             vector.  */
          if (known_eq (TYPE_VECTOR_SUBPARTS (vectype), 1U))
            *memory_access_type = VMAT_CONTIGUOUS;

looks like this needs to be conditional on gap == 0?  Adding that fixes
the testcase.  This was added by g:6737facbb3c53a1f0158b05e4116c161ed9bc319
Richard?  It looks like the !STMT_VINFO_STRIDED_P check might have supposed
to prevent this?  In vectorizable_load we're also doing

  if (memory_access_type == VMAT_GATHER_SCATTER
      || (!slp && memory_access_type == VMAT_CONTIGUOUS))
    grouped_load = false;

but vect_transform_grouped_load doesn't like this case, possibly because
there's nothing to "permute" (eliding that alone doesn't fix the code-gen
issue).

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2020-09-29 14:14 ` rguenth at gcc dot gnu.org
@ 2020-09-30  9:20 ` rguenth at gcc dot gnu.org
  2020-10-01 13:58 ` cvs-commit at gcc dot gnu.org
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-30  9:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
> So what goes wrong is the single-element interleaving code-gen for the
> pointer copy.  We have
> 
> t.c:18:21: note:   Detected single element interleaving
> picture_7(D)->p[i_18].p_pixels step 16
> 
> but for the store:
> 
> t.c:18:21: missed:   not consecutive access res_8(D)->p[i_18].p_pixels = _1;
> t.c:18:21: note:   using strided accesses
> 
> ...
> 
> t.c:18:21: note:   ==> examining statement: _1 =
> picture_7(D)->p[i_18].p_pixels;
> t.c:18:21: note:   vect_model_load_cost: aligned.
> t.c:18:21: note:   vect_model_load_cost: inside_cost = 24, prologue_cost = 0
> .
> 
> and in group get-load-store type we handle it as (V1DI)
> 
>       if (!STMT_VINFO_STRIDED_P (first_stmt_info)
>           && (can_overrun_p || !would_overrun_p)
>           && compare_step_with_zero (vinfo, stmt_info) > 0)
>         {
>           /* First cope with the degenerate case of a single-element
>              vector.  */
>           if (known_eq (TYPE_VECTOR_SUBPARTS (vectype), 1U))
>             *memory_access_type = VMAT_CONTIGUOUS;

So both doing && gap == 0 here and removing this special-case alltogether
passes bootstrap / regtest on x86_64.

I have no idea why the special case was needed in the first place?
Was the load-lanes code confused?  I think VMAT_ELEMENTWISE for
single-element vectors is a good enough match?  What's the advantage
of VMAT_CONTIGUOUS here?

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

* [Bug tree-optimization/97236] [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2020-09-30  9:20 ` rguenth at gcc dot gnu.org
@ 2020-10-01 13:58 ` cvs-commit at gcc dot gnu.org
  2020-10-01 13:59 ` [Bug tree-optimization/97236] [10 " rguenth at gcc dot gnu.org
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-01 13:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 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:04b99da898a9817e72fedb4063589648b7961ac5

commit r11-3594-g04b99da898a9817e72fedb4063589648b7961ac5
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Oct 1 15:12:35 2020 +0200

    tree-optimization/97236 - fix bad use of VMAT_CONTIGUOUS

    This avoids using VMAT_CONTIGUOUS with single-element interleaving
    when using V1mode vectors.  Instead keep VMAT_ELEMENTWISE but
    continue to avoid load-lanes and gathers.

    2020-10-01  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97236
            * tree-vect-stmts.c (get_group_load_store_type): Keep
            VMAT_ELEMENTWISE for single-element vectors.

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

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

* [Bug tree-optimization/97236] [10 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2020-10-01 13:58 ` cvs-commit at gcc dot gnu.org
@ 2020-10-01 13:59 ` rguenth at gcc dot gnu.org
  2020-10-06 11:42 ` cvs-commit at gcc dot gnu.org
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-01 13:59 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |10.1.0, 11.0
            Summary|[10/11 Regression]          |[10 Regression]
                   |g:e93428a8b056aed83a7678    |g:e93428a8b056aed83a7678
                   |triggers vlc miscompile     |triggers vlc miscompile
      Known to fail|                            |10.2.0

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.

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

* [Bug tree-optimization/97236] [10 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2020-10-01 13:59 ` [Bug tree-optimization/97236] [10 " rguenth at gcc dot gnu.org
@ 2020-10-06 11:42 ` cvs-commit at gcc dot gnu.org
  2020-10-06 12:20 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-06 11:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Matthias Klose
<doko@gcc.gnu.org>:

https://gcc.gnu.org/g:1ab88985631dd2c5a5e3b5c0dce47cf8b6ed2f82

commit r10-8859-g1ab88985631dd2c5a5e3b5c0dce47cf8b6ed2f82
Author: Matthias Klose <doko@ubuntu.com>
Date:   Tue Oct 6 13:41:37 2020 +0200

    Backport fix for PR/tree-optimization/97236 - fix bad use of
VMAT_CONTIGUOUS

    This avoids using VMAT_CONTIGUOUS with single-element interleaving
    when using V1mode vectors.  Instead keep VMAT_ELEMENTWISE but
    continue to avoid load-lanes and gathers.

    2020-10-01  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97236
            * tree-vect-stmts.c (get_group_load_store_type): Keep
            VMAT_ELEMENTWISE for single-element vectors.

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

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

* [Bug tree-optimization/97236] [10 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2020-10-06 11:42 ` cvs-commit at gcc dot gnu.org
@ 2020-10-06 12:20 ` rguenth at gcc dot gnu.org
  2021-02-03  8:25 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-06 12:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

* [Bug tree-optimization/97236] [10 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2020-10-06 12:20 ` rguenth at gcc dot gnu.org
@ 2021-02-03  8:25 ` rguenth at gcc dot gnu.org
  2021-02-03  8:26 ` [Bug tree-optimization/97236] [8/9 " rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-03  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kristian.klausen at scoutdi dot co
                   |                            |m

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 98932 has been marked as a duplicate of this bug. ***

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

* [Bug tree-optimization/97236] [8/9 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2021-02-03  8:25 ` rguenth at gcc dot gnu.org
@ 2021-02-03  8:26 ` rguenth at gcc dot gnu.org
  2021-02-05 15:43 ` cvs-commit at gcc dot gnu.org
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-03  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.3                        |8.5
         Resolution|FIXED                       |---
            Summary|[10 Regression]             |[8/9 Regression]
                   |g:e93428a8b056aed83a7678    |g:e93428a8b056aed83a7678
                   |triggers vlc miscompile     |triggers vlc miscompile
             Status|RESOLVED                    |REOPENED

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
Reopen for more backports.

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

* [Bug tree-optimization/97236] [8/9 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2021-02-03  8:26 ` [Bug tree-optimization/97236] [8/9 " rguenth at gcc dot gnu.org
@ 2021-02-05 15:43 ` cvs-commit at gcc dot gnu.org
  2021-02-05 15:44 ` ktkachov at gcc dot gnu.org
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-05 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Kyrylo Tkachov
<ktkachov@gcc.gnu.org>:

https://gcc.gnu.org/g:97b668f9a8c6ec565c278a60e7d1492a6932e409

commit r9-9224-g97b668f9a8c6ec565c278a60e7d1492a6932e409
Author: Matthias Klose <doko@ubuntu.com>
Date:   Tue Oct 6 13:41:37 2020 +0200

    Backport fix for PR/tree-optimization/97236 - fix bad use of
VMAT_CONTIGUOUS

    This avoids using VMAT_CONTIGUOUS with single-element interleaving
    when using V1mode vectors.  Instead keep VMAT_ELEMENTWISE but
    continue to avoid load-lanes and gathers.

    2020-10-01  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97236
            * tree-vect-stmts.c (get_group_load_store_type): Keep
            VMAT_ELEMENTWISE for single-element vectors.

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

    (cherry picked from commit 1ab88985631dd2c5a5e3b5c0dce47cf8b6ed2f82)

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

* [Bug tree-optimization/97236] [8/9 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2021-02-05 15:43 ` cvs-commit at gcc dot gnu.org
@ 2021-02-05 15:44 ` ktkachov at gcc dot gnu.org
  2021-02-05 15:45 ` [Bug tree-optimization/97236] [8 " ktkachov at gcc dot gnu.org
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2021-02-05 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from ktkachov at gcc dot gnu.org ---
*** Bug 98949 has been marked as a duplicate of this bug. ***

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

* [Bug tree-optimization/97236] [8 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (14 preceding siblings ...)
  2021-02-05 15:44 ` ktkachov at gcc dot gnu.org
@ 2021-02-05 15:45 ` ktkachov at gcc dot gnu.org
  2021-02-08 10:33 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2021-02-05 15:45 UTC (permalink / raw)
  To: gcc-bugs

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |9.3.1
                 CC|                            |ktkachov at gcc dot gnu.org
            Summary|[8/9 Regression]            |[8 Regression]
                   |g:e93428a8b056aed83a7678    |g:e93428a8b056aed83a7678
                   |triggers vlc miscompile     |triggers vlc miscompile

--- Comment #14 from ktkachov at gcc dot gnu.org ---
Fixed for GCC 9.4

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

* [Bug tree-optimization/97236] [8 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (15 preceding siblings ...)
  2021-02-05 15:45 ` [Bug tree-optimization/97236] [8 " ktkachov at gcc dot gnu.org
@ 2021-02-08 10:33 ` cvs-commit at gcc dot gnu.org
  2021-02-08 10:43 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-08 10:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Kyrylo Tkachov
<ktkachov@gcc.gnu.org>:

https://gcc.gnu.org/g:de0ede7625f6c4d4bbd2caaf363032b0da80cf69

commit r8-10757-gde0ede7625f6c4d4bbd2caaf363032b0da80cf69
Author: Matthias Klose <doko@ubuntu.com>
Date:   Tue Oct 6 13:41:37 2020 +0200

    Backport fix for PR/tree-optimization/97236 - fix bad use of
VMAT_CONTIGUOUS

    This avoids using VMAT_CONTIGUOUS with single-element interleaving
    when using V1mode vectors.  Instead keep VMAT_ELEMENTWISE but
    continue to avoid load-lanes and gathers.

    2020-10-01  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97236
            * tree-vect-stmts.c (get_group_load_store_type): Keep
            VMAT_ELEMENTWISE for single-element vectors.

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

    (cherry picked from commit 1ab88985631dd2c5a5e3b5c0dce47cf8b6ed2f82)

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

* [Bug tree-optimization/97236] [8 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (16 preceding siblings ...)
  2021-02-08 10:33 ` cvs-commit at gcc dot gnu.org
@ 2021-02-08 10:43 ` rguenth at gcc dot gnu.org
  2021-03-04  8:06 ` marxin at gcc dot gnu.org
  2021-04-19  6:31 ` rguenth at gcc dot gnu.org
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-08 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

* [Bug tree-optimization/97236] [8 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (17 preceding siblings ...)
  2021-02-08 10:43 ` rguenth at gcc dot gnu.org
@ 2021-03-04  8:06 ` marxin at gcc dot gnu.org
  2021-04-19  6:31 ` rguenth at gcc dot gnu.org
  19 siblings, 0 replies; 21+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-03-04  8:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Arfrever.FTA at GMail dot Com

--- Comment #17 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 99375 has been marked as a duplicate of this bug. ***

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

* [Bug tree-optimization/97236] [8 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile
  2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
                   ` (18 preceding siblings ...)
  2021-03-04  8:06 ` marxin at gcc dot gnu.org
@ 2021-04-19  6:31 ` rguenth at gcc dot gnu.org
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-19  6:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 85804 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2021-04-19  6:31 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29  7:12 [Bug tree-optimization/97236] New: [10/11 Regression] g:e93428a8b056aed83a7678 triggers vlc miscompile rguenth at gcc dot gnu.org
2020-09-29  7:13 ` [Bug tree-optimization/97236] " rguenth at gcc dot gnu.org
2020-09-29 13:05 ` marxin at gcc dot gnu.org
2020-09-29 13:05 ` marxin at gcc dot gnu.org
2020-09-29 13:06 ` marxin at gcc dot gnu.org
2020-09-29 13:46 ` rguenth at gcc dot gnu.org
2020-09-29 14:14 ` rguenth at gcc dot gnu.org
2020-09-30  9:20 ` rguenth at gcc dot gnu.org
2020-10-01 13:58 ` cvs-commit at gcc dot gnu.org
2020-10-01 13:59 ` [Bug tree-optimization/97236] [10 " rguenth at gcc dot gnu.org
2020-10-06 11:42 ` cvs-commit at gcc dot gnu.org
2020-10-06 12:20 ` rguenth at gcc dot gnu.org
2021-02-03  8:25 ` rguenth at gcc dot gnu.org
2021-02-03  8:26 ` [Bug tree-optimization/97236] [8/9 " rguenth at gcc dot gnu.org
2021-02-05 15:43 ` cvs-commit at gcc dot gnu.org
2021-02-05 15:44 ` ktkachov at gcc dot gnu.org
2021-02-05 15:45 ` [Bug tree-optimization/97236] [8 " ktkachov at gcc dot gnu.org
2021-02-08 10:33 ` cvs-commit at gcc dot gnu.org
2021-02-08 10:43 ` rguenth at gcc dot gnu.org
2021-03-04  8:06 ` marxin at gcc dot gnu.org
2021-04-19  6:31 ` 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).