public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted
@ 2015-04-28  9:40 jiwang at gcc dot gnu.org
  2015-04-28 16:25 ` pinskia
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jiwang at gcc dot gnu.org @ 2015-04-28  9:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65912
           Summary: x_rtl.x_frame_offset not updated after frame related
                    insn deleted
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jiwang at gcc dot gnu.org
  Target Milestone: ---

given the following simple test.c

typedef unsigned long int uint64_t;
typedef __Uint8x8_t uint8x8_t;

typedef struct uint8x8x4_t
{
  uint8x8_t val[4];
} uint8x8x4_t;

__inline uint8x8_t
bar (uint64_t __a)
{
  return (uint8x8_t) __a;
}

uint8x8x4_t foo(uint8x8x4_t v1, uint8x8x4_t v2)
{
  return (uint8x8x4_t){{bar(0), bar(0), bar(0), bar(0)}};
}

on aarch64, compile it with "./cc1-aarch64 -std=c99 -Wall -O3
-ftree-vectorizer-verbose=3"

foo:
        movi    v0.2s, 0
        sub     sp, sp, #128  <== useless stack adjustment
        add     sp, sp, 128   <== useless stack adjustment
        ...

There are useless stack adjustment. A quick investigation shows it's caued by
we first decide to put the return value on stack, then later optimized them
into registers, and all those store to stack are deleted by dse1, but stack
space required kept in x_rtl->x_frame_offset is not updated accordingly.

Although I run into this issue on AArch64, I highly suspect it's a generic
issue when the type of return value is very complex.

Has anyone run into this issue on other architecture like MIPS, PPC?


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

* Re: [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted
  2015-04-28  9:40 [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted jiwang at gcc dot gnu.org
@ 2015-04-28 16:25 ` pinskia
  2015-06-25 21:23 ` [Bug rtl-optimization/65912] " ramana at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia @ 2015-04-28 16:25 UTC (permalink / raw)
  To: jiwang at gcc dot gnu.org; +Cc: gcc-bugs



> On Apr 27, 2015, at 9:10 PM, jiwang at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org> wrote:
> 
> Has anyone run into this issue on other architecture like MIPS, PPC?

Yes on both. 
>From gcc-bugs-return-484877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 28 16:26:30 2015
Return-Path: <gcc-bugs-return-484877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21558 invoked by alias); 28 Apr 2015 16:26:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21506 invoked by uid 55); 28 Apr 2015 16:26:26 -0000
From: "pinskia at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/65912] x_rtl.x_frame_offset not updated after frame related insn deleted
Date: Tue, 28 Apr 2015 16:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65912-4-L3SS9OPGkt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg02429.txt.bz2
Content-length: 308

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide912

--- Comment #1 from pinskia at gmail dot com <pinskia at gmail dot com> ---
> On Apr 27, 2015, at 9:10 PM, jiwang at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org> wrote:
>
> Has anyone run into this issue on other architecture like MIPS, PPC?

Yes on both.


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

* [Bug rtl-optimization/65912] x_rtl.x_frame_offset not updated after frame related insn deleted
  2015-04-28  9:40 [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted jiwang at gcc dot gnu.org
  2015-04-28 16:25 ` pinskia
  2015-06-25 21:23 ` [Bug rtl-optimization/65912] " ramana at gcc dot gnu.org
@ 2015-06-25 21:23 ` ramana at gcc dot gnu.org
  2021-12-19  0:26 ` [Bug middle-end/65912] " pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2015-06-25 21:23 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |47562

--- Comment #3 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Technically blocks 47562 as this is another intrinsics related issue.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47562
[Bug 47562] [meta-bug] keep track of Neon Intrinsics enhancements


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

* [Bug rtl-optimization/65912] x_rtl.x_frame_offset not updated after frame related insn deleted
  2015-04-28  9:40 [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted jiwang at gcc dot gnu.org
  2015-04-28 16:25 ` pinskia
@ 2015-06-25 21:23 ` ramana at gcc dot gnu.org
  2015-06-25 21:23 ` ramana at gcc dot gnu.org
  2021-12-19  0:26 ` [Bug middle-end/65912] " pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2015-06-25 21:23 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Target|                            |aarch64*-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-06-25
                 CC|                            |ramana at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Confirmed then.


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

* [Bug middle-end/65912] x_rtl.x_frame_offset not updated after frame related insn deleted
  2015-04-28  9:40 [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted jiwang at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-06-25 21:23 ` ramana at gcc dot gnu.org
@ 2021-12-19  0:26 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-19  0:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.0
             Status|NEW                         |RESOLVED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This aarch64 testcase was fixed in GCC 6. There are already many more bug
reports about this issue really, see PR 101926.

So closing as fixed for GCC 6.

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

end of thread, other threads:[~2021-12-19  0:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-28  9:40 [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted jiwang at gcc dot gnu.org
2015-04-28 16:25 ` pinskia
2015-06-25 21:23 ` [Bug rtl-optimization/65912] " ramana at gcc dot gnu.org
2015-06-25 21:23 ` ramana at gcc dot gnu.org
2021-12-19  0:26 ` [Bug middle-end/65912] " 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).