public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/52171] New: memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0
@ 2012-02-08 12:38 rguenth at gcc dot gnu.org
  2012-02-08 13:06 ` [Bug tree-optimization/52171] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-08 12:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171

             Bug #: 52171
           Summary: memcmp/strcmp/strncmp can be optimized when the result
                    is tested for [in]equality with 0
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org
            Blocks: 43052


On GIMPLE we should expand memcmp/strcmp/strncmp to inline integral compares
if the result is only tested against equality with 0.

See PR43052 where we hint at that these may be the only profitable cases
to inline for memcmp at least.


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

end of thread, other threads:[~2022-05-24 13:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-08 12:38 [Bug tree-optimization/52171] New: memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0 rguenth at gcc dot gnu.org
2012-02-08 13:06 ` [Bug tree-optimization/52171] " rguenth at gcc dot gnu.org
2012-02-08 13:50 ` jakub at gcc dot gnu.org
2012-02-08 14:38 ` rguenth at gcc dot gnu.org
2012-05-06  5:03 ` pinskia at gcc dot gnu.org
2012-05-07  9:25 ` rguenth at gcc dot gnu.org
2013-02-19 14:51 ` rguenth at gcc dot gnu.org
2013-02-19 15:05 ` jakub at gcc dot gnu.org
2022-05-24 13:32 ` cvs-commit 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).