public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/44281] [4.3/4.4/4.5/4.6 Regression] Global Register variable pessimisation
Date: Sat, 11 Sep 2010 13:50:00 -0000 [thread overview]
Message-ID: <20100911134959.26218.qmail@sourceware.org> (raw)
In-Reply-To: <bug-44281-17273@http.gcc.gnu.org/bugzilla/>
------- Comment #3 from hjl dot tools at gmail dot com 2010-09-11 13:49 -------
(In reply to comment #2)
> GCC snapshot has regressed compared to gcc-4.5:
>
> #include <assert.h>
> #include <stdint.h>
>
> #define LIKELY(x) __builtin_expect(!!(x), 1)
> #define UNLIKELY(x) __builtin_expect(!!(x), 0)
>
> register uint32_t *Iptr __asm__("rbp");
>
> typedef void (*inst_t)(uint64_t types, uint64_t a, uint64_t b);
>
> __attribute__ ((noinline)) void dec_helper(uint64_t types, uint64_t a, uint64_t
> b) {
> assert("FIXME"=="");
> }
>
> void dec(uint64_t types, uint64_t a, uint64_t b) {
> if (LIKELY((types & 0xFF) == 1)) {
> uint32_t next = Iptr[1];
> --a;
> ++Iptr;
> ((inst_t) (uint64_t) next)(types, a, b);
> } else dec_helper(types, a, b);
> }
This is caused by revision 160124:
http://gcc.gnu.org/ml/gcc-cvs/2010-06/msg00036.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44281
next prev parent reply other threads:[~2010-09-11 13:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-26 5:12 [Bug regression/44281] New: Global Register variable pessimisation and regression adam at consulting dot net dot nz
2010-06-07 5:36 ` [Bug regression/44281] " adam at consulting dot net dot nz
2010-07-20 22:53 ` [Bug rtl-optimization/44281] [4.3/4.4/4.5/4.6 Regression] Global Register variable pessimisation steven at gcc dot gnu dot org
2010-07-20 22:55 ` pinskia at gcc dot gnu dot org
2010-07-22 8:48 ` rguenth at gcc dot gnu dot org
2010-09-11 11:16 ` adam at consulting dot net dot nz
2010-09-11 13:50 ` hjl dot tools at gmail dot com [this message]
2010-09-12 14:12 ` pinskia at gcc dot gnu dot org
2010-09-13 0:24 ` adam at consulting dot net dot nz
[not found] <bug-44281-4@http.gcc.gnu.org/bugzilla/>
2011-03-04 7:23 ` adam at consulting dot net.nz
2011-03-04 7:46 ` jakub at gcc dot gnu.org
2011-03-04 10:51 ` adam at consulting dot net.nz
2011-03-04 11:23 ` jakub at gcc dot gnu.org
2011-03-05 2:01 ` adam at consulting dot net.nz
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=20100911134959.26218.qmail@sourceware.org \
--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: link
Be 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).