public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/45422] [4.6 Regression] compile time increases 8x.
Date: Fri, 27 Aug 2010 12:07:00 -0000	[thread overview]
Message-ID: <20100827120656.23467.qmail@sourceware.org> (raw)
In-Reply-To: <bug-45422-6642@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-08-27 12:06 -------
MODULE hfx_contract_block
  INTEGER, PARAMETER :: dp=KIND(0.0D0)
CONTAINS
  SUBROUTINE
block_9_2(mc_max,md_max,kbd,kbc,kad,kac,pbd,pbc,pad,pac,prim,scale)
    INTEGER                                  :: mc_max, md_max
    REAL(KIND=dp) :: kbd(2*md_max), kbc(2*mc_max), kad(9*md_max), &
      kac(9*mc_max), pbd(2*md_max), pbc(2*mc_max), pad(9*md_max), &
      pac(9*mc_max), prim(9*2*mc_max*md_max), scale

    INTEGER                                  :: ma, mb, mc, md, p_index
    REAL(KIND=dp)                            :: ks_bc, ks_bd, p_bc, p_bd, tmp

      kbd(1:2*md_max) = 0.0_dp
      kbc(1:2*mc_max) = 0.0_dp
      kad(1:9*md_max) = 0.0_dp
      kac(1:9*mc_max) = 0.0_dp
      p_index = 0
      DO md = 1,md_max
        DO mc = 1,mc_max
          DO mb = 1,2
            ks_bd = 0.0_dp
            ks_bc = 0.0_dp
            p_bd = pbd((md-1)*2+mb)
            p_bc = pbc((mc-1)*2+mb)
            DO ma = 1,9
              p_index=p_index+1
              tmp = scale*prim(p_index)
              ks_bc = ks_bc + tmp* pad((md-1)*9+ma)
              ks_bd = ks_bd + tmp* pac((mc-1)*9+ma)
              kad((md-1)*9+ma) =  kad((md-1)*9+ma)-tmp*p_bc
              kac((mc-1)*9+ma) = kac((mc-1)*9+ma)-tmp*p_bd
            END DO
            kbd((md-1)*2+mb) = kbd((md-1)*2+mb) - ks_bd
            kbc((mc-1)*2+mb) = kbc((mc-1)*2+mb) - ks_bc
          END DO
        END DO
      END DO
  END SUBROUTINE block_9_2
END MODULE

gfortran -S -O3 -ffree-form -fbounds-check t.f90 -ftime-report

 tree iv optimization  :   3.49 (94%) usr   0.00 ( 0%) sys   3.52 (94%) wall   
2272 kB (36%) ggc

can someone try to track down revisions that slowed that testcase down?


-- 


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


  parent reply	other threads:[~2010-08-27 12:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 18:33 [Bug middle-end/45422] New: " jv244 at cam dot ac dot uk
2010-08-26 18:34 ` [Bug middle-end/45422] " jv244 at cam dot ac dot uk
2010-08-27 10:23 ` rguenth at gcc dot gnu dot org
2010-08-27 11:41 ` rguenth at gcc dot gnu dot org
2010-08-27 11:46 ` jv244 at cam dot ac dot uk
2010-08-27 12:07 ` rguenth at gcc dot gnu dot org [this message]
2010-08-27 12:16 ` rguenth at gcc dot gnu dot org
2010-08-27 13:01 ` rguenth at gcc dot gnu dot org
2010-08-27 15:52 ` hjl dot tools at gmail dot com
2010-08-27 17:01 ` davidxl at gcc dot gnu dot org
2010-08-28  6:00 ` davidxl at gcc dot gnu dot org
2010-08-29  5:09 ` [Bug middle-end/45422] [4.6 Regression] compile time increases 5x jv244 at cam dot ac dot uk
2010-08-29  5:13 ` pinskia at gcc dot gnu dot org
2010-08-29  5:21 ` jv244 at cam dot ac dot uk
2010-08-29  5:24 ` pinskia at gcc dot gnu dot org
2010-08-29  5:31 ` jv244 at cam dot ac dot uk
2010-08-29  6:38 ` [Bug middle-end/45422] [4.6 Regression] compile time increases 3x jv244 at cam dot ac dot uk
2010-08-29  9:26 ` rguenth at gcc dot gnu dot org
2010-08-29 15:07 ` jv244 at cam dot ac dot uk
2010-08-30  3:11 ` davidxl at gcc dot gnu dot org
2010-08-30  3:19 ` davidxl at gcc dot gnu dot org
2010-08-30  7:12 ` rguenth at gcc dot gnu dot org
2010-08-30  7:12 ` rguenth at gcc dot gnu dot org
2010-08-30 16:41 ` davidxl at gcc dot gnu dot org
2010-08-31 17:45 ` davidxl at gcc dot gnu dot org
2010-09-02 11:25 ` rguenth at gcc dot gnu dot 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=20100827120656.23467.qmail@sourceware.org \
    --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).