public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59539] Missed optimisation: VEX-prefixed operations don't need aligned data Date: Wed, 18 Dec 2013 08:33:00 -0000 [thread overview] Message-ID: <bug-59539-4-ktKNXcNk8T@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59539-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59539 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2013-12-18 CC| |jakub at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 31463 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31463&action=edit gcc49-pr59539.patch This has been improved already for the compiler generated misaligned loads in r204219 aka PR47754, but when you explicitly use intrinsics we don't go through the movmisalign path (and, I think we shouldn't, at least I doubt when you say use _mm256_loadu_si256 you'd be expecting to use depending on tuning say two misaligned 128-bit loads instead), it still forces the generation of UNSPECs. This patch will if the compiler will emit a vmovdqu (or vmovup{s,d}) for normal *mov<mode>_internal pattern emit that instead of the UNSPECs and allow combining it into insns, while if you use the unaligned loads on something known to be unaligned, it will still not combine it (it will honor the unaligned load then, because you've requested it specially).
next prev parent reply other threads:[~2013-12-18 8:33 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-12-18 0:50 [Bug target/59539] New: " thiago at kde dot org 2013-12-18 8:33 ` jakub at gcc dot gnu.org [this message] 2013-12-18 8:49 ` [Bug target/59539] " thiago at kde dot org 2013-12-18 9:38 ` ubizjak at gmail dot com 2013-12-18 9:43 ` jakub at gcc dot gnu.org 2013-12-18 9:50 ` ubizjak at gmail dot com 2013-12-18 10:18 ` jakub at gcc dot gnu.org 2013-12-18 10:39 ` ubizjak at gmail dot com 2013-12-18 11:04 ` ubizjak at gmail dot com 2013-12-18 16:50 ` jakub at gcc dot gnu.org 2013-12-18 16:52 ` jakub at gcc dot gnu.org 2013-12-18 17:36 ` thiago at kde dot org 2013-12-19 0:07 ` thiago at kde dot org 2013-12-19 0:14 ` thiago at kde dot 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-59539-4-ktKNXcNk8T@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).