public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jiwang at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/65912] New: x_rtl.x_frame_offset not updated after frame related insn deleted Date: Tue, 28 Apr 2015 09:40:00 -0000 [thread overview] Message-ID: <bug-65912-4@http.gcc.gnu.org/bugzilla/> (raw) 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?
next reply other threads:[~2015-04-28 9:40 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-28 9:40 jiwang at gcc dot gnu.org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-65912-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).