public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "evstupac at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/52252] An opportunity for x86 gcc vectorizer (gain up to 3 times) Date: Wed, 29 Feb 2012 12:34:00 -0000 [thread overview] Message-ID: <bug-52252-4-WHD8cucYzc@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-52252-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52252 --- Comment #2 from Stupachenko Evgeny <evstupac at gmail dot com> 2012-02-29 12:32:20 UTC --- The difference of 2 dumps from Arm: gcc -O3 -mfpu=neon test.c -S -ftree-vectorizer-verbose=12 X86: gcc -O3 -m32 -msse3 test.c -S -ftree-vectorizer-verbose=12 Starts at: For Arm (can use vec_load_lanes): 6: === vect_make_slp_decision === 6: === vect_detect_hybrid_slp === 6: === vect_analyze_loop_operations === 6: examining phi: in_35 = PHI <in_22(7), in_5(D)(4)> …… 6: can use vec_load_lanes<CI><V16QI> 6: vect_model_load_cost: unaligned supported by hardware. 6: vect_model_load_cost: inside_cost = 2, outside_cost = 0 . For x86 (no array mode for V16QI[3]): 6: === vect_make_slp_decision === 6: === vect_detect_hybrid_slp === 6: === vect_analyze_loop_operations === 6: examining phi: in_35 = PHI <in_22(7), in_5(D)(4)> .…… 6: no array mode for V16QI[3] 6: the size of the group of strided accesses is not a power of 2 6: not vectorized: relevant stmt not supported: r_8 = *in_35; As I mentioned before, there is an ability for x86 to handle this (Arm can shuffle than loads, x86 can use pshufb).
next prev parent reply other threads:[~2012-02-29 12:32 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-02-14 22:42 [Bug c/52252] New: " evstupac at gmail dot com 2012-02-15 11:55 ` [Bug tree-optimization/52252] " rguenth at gcc dot gnu.org 2012-02-29 12:34 ` evstupac at gmail dot com [this message] 2012-07-13 8:48 ` rguenth at gcc dot gnu.org 2014-02-11 14:27 ` evstupac at gmail dot com 2014-05-07 12:11 ` kyukhin at gcc dot gnu.org 2014-06-11 8:38 ` kyukhin at gcc dot gnu.org 2014-06-18 7:47 ` kyukhin at gcc dot gnu.org 2023-08-31 7:07 ` rguenth at gcc dot gnu.org 2023-11-28 6:06 ` pinskia at gcc dot gnu.org 2023-11-28 10:55 ` rguenther at suse dot de 2023-11-28 22:24 ` 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-52252-4-WHD8cucYzc@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).