public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "steven at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/52391] [4.7 regression] genattrtab almost 5X slower for m68k than in 4.6 and earlier releases
Date: Tue, 28 Feb 2012 00:38:00 -0000	[thread overview]
Message-ID: <bug-52391-4-SQVF3J8fzr@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52391-4@http.gcc.gnu.org/bugzilla/>

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu.org

--- Comment #9 from Steven Bosscher <steven at gcc dot gnu.org> 2012-02-28 00:13:29 UTC ---
Well, we do seem to go a bit to extremes to simplify an expression:
#2212 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2213 0x0000000000406f8f in simplify_test_exp (exp=0x78f390, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2214 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2215 0x0000000000406f8f in simplify_test_exp (exp=0x78f350, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2216 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2217 0x0000000000406f8f in simplify_test_exp (exp=0x78f310, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2218 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2219 0x0000000000406f8f in simplify_test_exp (exp=0x78f2d0, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2220 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2221 0x0000000000406f8f in simplify_test_exp (exp=0x78f290, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2222 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2223 0x0000000000406f8f in simplify_test_exp (exp=0x78f250, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2224 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2225 0x0000000000406f8f in simplify_test_exp (exp=0x78f210, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2226 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2227 0x0000000000406f8f in simplify_test_exp (exp=0x78f1d0, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2228 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2229 0x0000000000406f8f in simplify_test_exp (exp=0x78f190, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2230 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2231 0x0000000000406f8f in simplify_test_exp (exp=0x78f150, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2232 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2233 0x0000000000406f8f in simplify_test_exp (exp=0x78f110, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2234 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2235 0x0000000000406f8f in simplify_test_exp (exp=0x78f0d0, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2236 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2237 0x0000000000406f8f in simplify_test_exp (exp=0x78f090, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2238 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2239 0x0000000000406f8f in simplify_test_exp (exp=0x78f050, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
#2240 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
#2241 0x00000000004074da in simplify_test_exp (exp=0x76f300, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2602
#2242 0x0000000000406a02 in simplify_test_exp_in_temp (exp=0x76f300,
insn_code=0, insn_index=65) at ../../trunk/gcc/genattrtab.c:2335
#2243 0x0000000000405246 in simplify_cond (exp=0x739890, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:1671
#2244 0x0000000000408225 in optimize_attrs () at
../../trunk/gcc/genattrtab.c:2877
#2245 0x000000000040cfe9 in main (argc=3, argv=0x7fffffffe328) at
../../trunk/gcc/genattrtab.c:5023
(gdb)


It's not very productive, either:

#2230 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
2595                  return SIMPLIFY_TEST_EXP (newexp, insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr/u/i ("cpu") ("cfv4"))
    (eq_attr_alt/s 1 1))
(gdb) down
#2229 0x0000000000406f8f in simplify_test_exp (exp=0x78f190, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
2506          right = SIMPLIFY_TEST_EXP (XEXP (exp, 1), insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr_alt/s 2 0)
    (and (eq_attr/u/i ("cpu") ("cfv4"))
        (eq_attr_alt/s 1 1)))
(gdb) down
#2228 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
2595                  return SIMPLIFY_TEST_EXP (newexp, insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr/u/i ("cpu") ("cfv4"))
    (eq_attr_alt/s 1 1))
(gdb) down
#2227 0x0000000000406f8f in simplify_test_exp (exp=0x78f1d0, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
2506          right = SIMPLIFY_TEST_EXP (XEXP (exp, 1), insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr_alt/s 2 0)
    (and (eq_attr/u/i ("cpu") ("cfv4"))
        (eq_attr_alt/s 1 1)))
(gdb) down
#2226 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
2595                  return SIMPLIFY_TEST_EXP (newexp, insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr/u/i ("cpu") ("cfv4"))
    (eq_attr_alt/s 1 1))
(gdb) down
#2225 0x0000000000406f8f in simplify_test_exp (exp=0x78f210, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
2506          right = SIMPLIFY_TEST_EXP (XEXP (exp, 1), insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr_alt/s 2 0)
    (and (eq_attr/u/i ("cpu") ("cfv4"))
        (eq_attr_alt/s 1 1)))
(gdb) down
#2224 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
2595                  return SIMPLIFY_TEST_EXP (newexp, insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr/u/i ("cpu") ("cfv4"))
    (eq_attr_alt/s 1 1))
(gdb) down
#2223 0x0000000000406f8f in simplify_test_exp (exp=0x78f250, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
2506          right = SIMPLIFY_TEST_EXP (XEXP (exp, 1), insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr_alt/s 2 0)
    (and (eq_attr/u/i ("cpu") ("cfv4"))
        (eq_attr_alt/s 1 1)))
(gdb) down
#2222 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
2595                  return SIMPLIFY_TEST_EXP (newexp, insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr/u/i ("cpu") ("cfv4"))
    (eq_attr_alt/s 1 1))
(gdb) down
#2221 0x0000000000406f8f in simplify_test_exp (exp=0x78f290, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
2506          right = SIMPLIFY_TEST_EXP (XEXP (exp, 1), insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr_alt/s 2 0)
    (and (eq_attr/u/i ("cpu") ("cfv4"))
        (eq_attr_alt/s 1 1)))
(gdb) down
#2220 0x0000000000407445 in simplify_test_exp (exp=0x78f010, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2595
2595                  return SIMPLIFY_TEST_EXP (newexp, insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr/u/i ("cpu") ("cfv4"))
    (eq_attr_alt/s 1 1))
(gdb) down
#2219 0x0000000000406f8f in simplify_test_exp (exp=0x78f2d0, insn_code=0,
insn_index=65) at ../../trunk/gcc/genattrtab.c:2506
2506          right = SIMPLIFY_TEST_EXP (XEXP (exp, 1), insn_code, insn_index);
(gdb) call print_rtl (stderr,exp)
(and (eq_attr_alt/s 2 0)
    (and (eq_attr/u/i ("cpu") ("cfv4"))
        (eq_attr_alt/s 1 1)))
(gdb) (etc...)


  parent reply	other threads:[~2012-02-28  0:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-26 23:08 [Bug other/52391] New: " mikpe at it dot uu.se
2012-02-27  9:32 ` [Bug other/52391] " rguenth at gcc dot gnu.org
2012-02-27 10:48 ` [Bug bootstrap/52391] " rguenth at gcc dot gnu.org
2012-02-27 20:44 ` jakub at gcc dot gnu.org
2012-02-27 21:52 ` mikpe at it dot uu.se
2012-02-27 23:04 ` steven at gcc dot gnu.org
2012-02-27 23:05 ` mikpe at it dot uu.se
2012-02-27 23:16 ` steven at gcc dot gnu.org
2012-02-27 23:35 ` jakub at gcc dot gnu.org
2012-02-28  0:38 ` steven at gcc dot gnu.org [this message]
2012-02-28  9:02 ` steven at gcc dot gnu.org
2012-03-22  8:44 ` [Bug bootstrap/52391] [4.7/4.8 " rguenth at gcc dot gnu.org
2012-05-05 10:14 ` steven at gcc dot gnu.org
2012-05-05 11:31 ` steven at gcc dot gnu.org
2012-05-06 22:02 ` steven at gcc dot gnu.org
2012-05-07 12:46 ` steven at gcc dot gnu.org

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=bug-52391-4-SQVF3J8fzr@http.gcc.gnu.org/bugzilla/ \
    --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: link
Be 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).