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 tree-optimization/66002] paq8p benchmark 50% slower than clang on sandybridge Date: Mon, 04 May 2015 13:43:00 -0000 [thread overview] Message-ID: <bug-66002-4-zXpyLqeAt7@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66002-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66002 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- high up in the profile are functions train() and dot_product(), also ContextMap::mix1 and Mixer::p. But void train(short *t, short *w, int n, int err) { n=(n+7)&-8; for (int i=0; i<n; ++i) { int wt=w[i]+((t[i]*err*2>>16)+1>>1); if (wt<-32768) wt=-32768; if (wt>32767) wt=32767; w[i]=wt; } } seems to be the hottest function. t.c:4:5: note: not vectorized: relevant stmt not supported: prephitmp_61 = _53 <= 65535 ? pretmp_60 : -32768; t.c:4:5: note: bad operation or unsupported loop bound. t.c:1:6: note: vectorized 0 loops in function. <bb 5>: # i_33 = PHI <0(4), i_28(7)> _9 = (long unsigned int) i_33; _10 = _9 * 2; _12 = w_11(D) + _10; _13 = *_12; _14 = (int) _13; _16 = t_15(D) + _10; _17 = *_16; _18 = (int) _17; _20 = _18 * err_19(D); _21 = _20 * 2; _22 = _21 >> 16; _23 = _22 + 1; _24 = _23 >> 1; wt_25 = _14 + _24; pretmp_60 = (short int) wt_25; _31 = (unsigned int) wt_25; _53 = _31 + 32768; prephitmp_61 = _53 <= 65535 ? pretmp_60 : -32768; _32 = _53 <= 65535; _52 = wt_25 < -32768; _51 = _32 | _52; prephitmp_59 = _51 ? prephitmp_61 : 32767; *_12 = prephitmp_59; i_28 = i_33 + 1; if (n_7 > i_28) goto <bb 7>; else goto <bb 6>; <bb 7>: goto <bb 5>;
next prev parent reply other threads:[~2015-05-04 13:43 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-04 7:20 [Bug tree-optimization/66002] New: " trippels at gcc dot gnu.org 2015-05-04 12:47 ` [Bug tree-optimization/66002] " rguenth at gcc dot gnu.org 2015-05-04 12:55 ` trippels at gcc dot gnu.org 2015-05-04 13:43 ` rguenth at gcc dot gnu.org [this message] 2015-05-04 13:57 ` rguenth at gcc dot gnu.org 2015-05-04 14:06 ` rguenth at gcc dot gnu.org 2015-05-04 14:11 ` trippels at gcc dot gnu.org 2015-05-06 11:51 ` rguenth at gcc dot gnu.org 2015-05-06 12:13 ` rguenth at gcc dot gnu.org 2015-05-07 9:53 ` rguenth at gcc dot gnu.org 2015-05-07 9:54 ` rguenth 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-66002-4-zXpyLqeAt7@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).