public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/53253] New: Missed opportunity to inline memcmp @ 2012-05-06 4:08 law at redhat dot com 2012-05-06 4:54 ` [Bug tree-optimization/53253] " pinskia at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: law at redhat dot com @ 2012-05-06 4:08 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53253 Bug #: 53253 Summary: Missed opportunity to inline memcmp Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: law@redhat.com Compile with -O2. Note the length of the memory to be compared via memcmp is fixed and just 2 bytes. It'd be more efficient and possibly smaller to just inline the necessary comparisons. Seems to me this ought to be addressed in our tree optimizers. int foo(const char* x) { return memcmp(x,"xx",2) != 0; } ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/53253] Missed opportunity to inline memcmp 2012-05-06 4:08 [Bug tree-optimization/53253] New: Missed opportunity to inline memcmp law at redhat dot com @ 2012-05-06 4:54 ` pinskia at gcc dot gnu.org 2012-05-06 4:56 ` pinskia at gcc dot gnu.org 2012-05-07 9:25 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-05-06 4:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53253 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-05-06 Ever Confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-06 04:50:47 UTC --- Confirmed. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/53253] Missed opportunity to inline memcmp 2012-05-06 4:08 [Bug tree-optimization/53253] New: Missed opportunity to inline memcmp law at redhat dot com 2012-05-06 4:54 ` [Bug tree-optimization/53253] " pinskia at gcc dot gnu.org @ 2012-05-06 4:56 ` pinskia at gcc dot gnu.org 2012-05-07 9:25 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-05-06 4:56 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53253 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-06 04:55:21 UTC --- Related also to PR 12086. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/53253] Missed opportunity to inline memcmp 2012-05-06 4:08 [Bug tree-optimization/53253] New: Missed opportunity to inline memcmp law at redhat dot com 2012-05-06 4:54 ` [Bug tree-optimization/53253] " pinskia at gcc dot gnu.org 2012-05-06 4:56 ` pinskia at gcc dot gnu.org @ 2012-05-07 9:25 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu.org @ 2012-05-07 9:25 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53253 Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-07 09:22:57 UTC --- This is a dup of 52171. RTL/expand parts are tracked in PR12086. *** This bug has been marked as a duplicate of bug 52171 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-07 9:25 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-05-06 4:08 [Bug tree-optimization/53253] New: Missed opportunity to inline memcmp law at redhat dot com 2012-05-06 4:54 ` [Bug tree-optimization/53253] " pinskia at gcc dot gnu.org 2012-05-06 4:56 ` pinskia at gcc dot gnu.org 2012-05-07 9:25 ` rguenth 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).