public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/37171]  New: [4.4 Regression] Canonical spelling optimization dependency
@ 2008-08-20  2:25 dje at gcc dot gnu dot org
  2008-08-20  2:26 ` [Bug regression/37171] " dje at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: dje at gcc dot gnu dot org @ 2008-08-20  2:25 UTC (permalink / raw)
  To: gcc-bugs

The recent patch

        * c-parser.c (c_lex_one_token): Do not store the canonical spelling
        for keywords.

causes a significant performance regression on SPEC CPU2000 197.parser.  With
the above patch, the libc function __ctype_b_loc is called significantly more
times, spending twice the number of cycles in that function.  Profiling shows
94K hits for fast version and 190K hits for slow version.

We suspect that this may involve the toupper() calls in strncasecmp.c. 
Apparently the canonical name is necessary for some GCC optimization, possibly
the automatic substitution of builtins.


-- 
           Summary: [4.4 Regression] Canonical spelling optimization
                    dependency
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dje at gcc dot gnu dot org
 GCC build triplet: powerpc*-*-*
  GCC host triplet: powerpc*-*-*
GCC target triplet: powerpc*-*-*


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


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

end of thread, other threads:[~2008-09-02 18:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-20  2:25 [Bug regression/37171] New: [4.4 Regression] Canonical spelling optimization dependency dje at gcc dot gnu dot org
2008-08-20  2:26 ` [Bug regression/37171] " dje at gcc dot gnu dot org
2008-08-20  9:42 ` rguenth at gcc dot gnu dot org
2008-08-20  9:42 ` [Bug c/37171] " rguenth at gcc dot gnu dot org
2008-08-20 14:05 ` luisgpm at linux dot vnet dot ibm dot com
2008-08-20 14:06 ` luisgpm at linux dot vnet dot ibm dot com
2008-08-20 14:08 ` luisgpm at linux dot vnet dot ibm dot com
2008-08-20 14:09 ` luisgpm at linux dot vnet dot ibm dot com
2008-08-20 14:23 ` luisgpm at linux dot vnet dot ibm dot com
2008-08-20 14:51 ` jakub at gcc dot gnu dot org
2008-08-20 15:53 ` jakub at gcc dot gnu dot org
2008-08-20 16:11 ` luisgpm at linux dot vnet dot ibm dot com
2008-08-20 16:15 ` jakub at gcc dot gnu dot org
2008-09-02 18:45 ` jakub at gcc dot gnu dot 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).