public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com> To: gcc-gnats@gcc.gnu.org Subject: optimization/2391: Exponential compilation time explosion in combine Date: Mon, 26 Mar 2001 02:36:00 -0000 [thread overview] Message-ID: <200103261026.LAA29078@sun18.cambridge.arm.com> (raw) >Number: 2391 >Category: optimization >Synopsis: Exponential compilation time explosion in combine >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Mar 26 02:36:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Richard Earnshaw >Release: 3.1 20010323 (experimental) >Organization: ARM >Environment: System: SunOS sun18 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-5_10 Architecture: sun4 host: sparc-sun-solaris2.5.1 build: sparc-sun-solaris2.5.1 target: arm-unknown-elf configured with: /home/rearnsha/gnusrc/egcs-cross/configure --target=arm-elf --with-headers=/home/rearnsha/gnusrc/utils/newlib/libc/include --prefix=/home/rearnsha/gnu/egcs/install/SunOS5 >Description: The following code, when compiled with optimization on gcc/arm (any configuration), demonstrates an exponential time behaviour in combine. Each additional statement doubles the length of the compilation. This is a long-standing problem that dates back to at least gcc-2.8 >How-To-Repeat: Compile the following test case on arm-elf (or any other ARM target): arm-elf-gcc -O test.c unsigned mhz_2(register long n, unsigned a) { for (; n > 0; --n) { a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; a^=a+a; } return a; } >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-03-26 2:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-03-26 2:36 Richard Earnshaw [this message] 2002-01-12 12:16 Craig Rodrigues 2003-02-14 21:34 nemet 2003-02-16 1:44 nemet
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=200103261026.LAA29078@sun18.cambridge.arm.com \ --to=rearnsha@arm.com \ --cc=gcc-gnats@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: linkBe 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).