public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64450] New: Optimize   0>=p-q   to   q>=p   for char*p,*q;
@ 2014-12-30 20:58 gcc-bugzilla at contacts dot eelis.net
  2014-12-30 20:59 ` [Bug c++/64450] " ville.voutilainen at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gcc-bugzilla at contacts dot eelis.net @ 2014-12-30 20:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64450

            Bug ID: 64450
           Summary: Optimize   0>=p-q   to   q>=p   for char*p,*q;
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc-bugzilla at contacts dot eelis.net

Created attachment 34365
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34365&action=edit
Testcase

It was noticed that Boost's iterator_facade incurred a performance penalty
(while it should ideally be zero-overhead), which results from the fact that
GCC does not optimize   0>=p-q  to  q>=p  for char*p,*q;. See attachment.

This probably applies to > and < and <= as well.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-23 15:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-30 20:58 [Bug c++/64450] New: Optimize 0>=p-q to q>=p for char*p,*q; gcc-bugzilla at contacts dot eelis.net
2014-12-30 20:59 ` [Bug c++/64450] " ville.voutilainen at gmail dot com
2014-12-30 21:36 ` [Bug tree-optimization/64450] " glisse at gcc dot gnu.org
2014-12-30 21:38 ` pinskia at gcc dot gnu.org
2023-05-14 23:20 ` pinskia at gcc dot gnu.org
2023-10-23 15:20 ` pinskia at gcc dot gnu.org

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).