public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/16611] Terrible code generated for vector<bool> Date: Sat, 17 Jul 2004 22:49:00 -0000 [thread overview] Message-ID: <20040717224902.11807.qmail@sourceware.org> (raw) In-Reply-To: <20040717215713.16611.falk@debian.org> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-17 22:49 ------- Lets look into the tree dump (which by the way looks like crap): __x = (struct _Bit_iterator *)v; __y = __x-><D10960>._M_offset; this = (struct _Bit_iterator_base *)&<D12708>; <--- the address is not propagated so SRA is not working this->_M_p = __x-><D10960>._M_p; <--- here this->_M_offset = __y; <--- her SR.334 = <D12708>.<D11089>._M_p; __tmp.<D11089>._M_offset = <D12708>.<D11089>._M_offset; __tmp.<D11089>._M_p = SR.334; this = (struct _Bit_iterator_base *)&__tmp; <--- here __n = (ptrdiff_t)(this->_M_offset + (unsigned int)(ptrdiff_t)x); this->_M_p = this->_M_p + (_Bit_type *)((unsigned int)(__n / 32) * 4); __n.345 = __n % 32; if (__n.345 < 0) goto <L1>; else goto <L2>; <L1>:; this->_M_offset = (unsigned int)(__n.345 + 32); // <-- here this->_M_p = this->_M_p - 4B; // <-- here goto <bb 3> (<L3>); <L2>:; this->_M_offset = (unsigned int)__n.345; // <-- here <L3>:; return (int)(bool)(int)(bool)(int)(bool)((1 << (int)__tmp.<D11089>._M_offset & *__tmp.<D11089>. _M_p) != 0); // <-- here -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|libstdc++ |tree-optimization Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-07-17 22:49:01 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16611
next prev parent reply other threads:[~2004-07-17 22:49 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-17 21:57 [Bug libstdc++/16611] New: " falk at debian dot org 2004-07-17 22:49 ` pinskia at gcc dot gnu dot org [this message] 2004-10-16 14:11 ` [Bug tree-optimization/16611] " pinskia at gcc dot gnu dot org 2005-04-11 19:40 ` sabre at nondot dot org 2005-04-12 8:07 ` [Bug libstdc++/16611] " falk at debian dot org 2005-04-12 14:31 ` sabre at nondot dot org 2005-04-17 16:35 ` pcarlini at suse dot de 2005-04-18 8:10 ` falk at debian dot org 2005-04-18 14:23 ` pcarlini at suse dot de
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=20040717224902.11807.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: 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).