public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59464] Unnecessary vector register spill Date: Wed, 11 Dec 2013 09:21:00 -0000 [thread overview] Message-ID: <bug-59464-4-tL5PPi8zYI@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59464-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59464 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-12-11 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- struct8 (struct test_structure_8 ts) { vector(4) float vect__2.10; vector(4) float vect_ts_f1_9.9; struct test_structure_8 D.1759; ;; basic block 2, loop depth 0 ;; pred: ENTRY vect_ts_f1_9.9_15 = MEM[(struct *)&ts]; vect__2.10_17 = vect_ts_f1_9.9_15 + { 1.0e+0, 1.0e+0, 1.0e+0, 1.0e+0 }; MEM[(struct *)&D.1759] = vect__2.10_17; return D.1759; ;; succ: EXIT } OTOH the code generated is much much worse if you disable vectorization. Then we should make sure the stack slot we spill the arguments to is properly aligned so we can avoid the UNSPEC_LOADU. This eventually can lead to cleanup opportunities. Ideally we'd recognize that we can more optimally load from the argument registers into a V4SF register of course (but due to the way we do argument setup during expand this may not be easily possible). It's of course the bad ABI choice that leads to this mess ...
prev parent reply other threads:[~2013-12-11 9:21 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-12-11 0:54 [Bug target/59464] New: " hjl.tools at gmail dot com 2013-12-11 9:21 ` rguenth at gcc dot gnu.org [this message]
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-59464-4-tL5PPi8zYI@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).