public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/27855] reassociation pass produces ~30% slower matrix multiplication code
Date: Sat, 03 Jun 2006 02:38:00 -0000	[thread overview]
Message-ID: <20060603023833.10028.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27855-1649@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-06-03 02:38 -------
What reassociation is doing is "scheduling" the instructions further down
before the use but it exands the life time of some variables.

e.g.:
  D.1563_59 = rA0_49 * rB0_50;
  rC0_0_60 = D.1563_59 + rC0_0_516;
  D.1564_61 = rA1_52 * rB0_50;
  rC1_0_62 = D.1564_61 + rC1_0_517;
  D.1565_63 = rA2_54 * rB0_50;
  rC2_0_64 = D.1565_63 + rC2_0_518;
  D.1566_65 = rA3_56 * rB0_50;
  rC3_0_66 = D.1566_65 + rC3_0_519;
  D.1567_67 = rA4_58 * rB0_50;
  rC4_0_68 = D.1567_67 + rC4_0_520;

into:
  D.1563_59 = rB0_50 * rA0_49;
  D.1564_61 = rA1_52 * rB0_50;
  D.1565_63 = rA2_54 * rB0_50;
  D.1566_65 = rA3_56 * rB0_50;
  D.1567_67 = rA4_58 * rB0_50;
..... (with loads, etc here)
 D.1563_477 = rB0_468 * rA0_466;
  rC0_0_60 = D.1563_59 + rC0_0_516;
  rC0_0_82 = rC0_0_60 + D.1563_81;
  rC0_0_104 = rC0_0_82 + D.1563_103;
  rC0_0_126 = rC0_0_104 + D.1563_125;
  rC0_0_148 = rC0_0_126 + D.1563_147;
  rC0_0_170 = rC0_0_148 + D.1563_169;
  rC0_0_192 = rC0_0_170 + D.1563_191;
  rC0_0_214 = rC0_0_192 + D.1563_213;
  rC0_0_236 = rC0_0_214 + D.1563_235;
  rC0_0_258 = rC0_0_236 + D.1563_257;
  rC0_0_280 = rC0_0_258 + D.1563_279;
  rC0_0_302 = rC0_0_280 + D.1563_301;
  rC0_0_324 = rC0_0_302 + D.1563_323;
  rC0_0_346 = rC0_0_324 + D.1563_345;
  rC0_0_368 = rC0_0_346 + D.1563_367;
  rC0_0_390 = rC0_0_368 + D.1563_389;
  rC0_0_412 = rC0_0_390 + D.1563_411;
  rC0_0_434 = rC0_0_412 + D.1563_433;
  rC0_0_456 = rC0_0_434 + D.1563_455;
  rC0_0_478 = rC0_0_456 + D.1563_477;


Which in of itself not supressing and not nothing which reassociate should
handle special.  This is what we get with a semi bad register allocation which
does nothing to reduce spilling.


-- 


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


  parent reply	other threads:[~2006-06-03  2:38 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-01 11:34 [Bug tree-optimization/27855] New: " uros at kss-loka dot si
2006-06-01 15:26 ` [Bug target/27855] " pinskia at gcc dot gnu dot org
2006-06-02 10:04 ` uros at kss-loka dot si
2006-06-02 10:19 ` pinskia at gcc dot gnu dot org
2006-06-02 23:20 ` steven at gcc dot gnu dot org
2006-06-03  2:11   ` Daniel Berlin
2006-06-03  2:11 ` dberlin at dberlin dot org
2006-06-03  2:38 ` pinskia at gcc dot gnu dot org [this message]
2006-06-03  2:50 ` pinskia at gcc dot gnu dot org
2006-06-03 23:49 ` steven at gcc dot gnu dot org
2006-06-05 15:57 ` amacleod at redhat dot com
2006-06-05 16:03 ` dberlin at gcc dot gnu dot org
2006-10-07 10:05 ` steven at gcc dot gnu dot org
2006-10-07 16:36 ` pinskia at gcc dot gnu dot org
2007-03-02 15:35 ` ubizjak at gmail dot com
2007-03-02 17:43 ` pinskia at gcc dot gnu dot org
2007-07-09 18:17 ` ubizjak at gmail dot com
2007-07-09 19:22 ` uros at gcc dot gnu dot org
2007-12-10 10:17 ` [Bug target/27855] [4.3 regression] " ubizjak at gmail dot com
2007-12-10 10:40 ` rguenth at gcc dot gnu dot org
2007-12-10 11:14 ` ubizjak at gmail dot com
2007-12-11  5:57 ` ubizjak at gmail dot com
2007-12-26  1:37 ` [Bug target/27855] [4.3 regression] reassociation causes the RA to be confused pinskia at gcc dot gnu dot org
2008-03-14 16:43 ` [Bug target/27855] [4.3/4.4 " rguenth at gcc dot gnu dot org
2008-06-06 14:58 ` rguenth at gcc dot gnu dot org
2008-08-27 22:03 ` jsm28 at gcc dot gnu dot org
2008-11-13 13:37 ` jakub at gcc dot gnu dot org
2008-11-13 14:54 ` ubizjak at gmail dot com
2008-11-13 14:59 ` ubizjak at gmail dot com
2009-01-24 10:20 ` rguenth at gcc dot gnu dot org
2009-02-04  7:47 ` bonzini at gnu dot org
2009-02-04  8:58 ` ubizjak at gmail dot com
2009-02-04 11:23 ` bonzini at gnu dot org
2009-04-16 22:26 ` [Bug target/27855] [4.3/4.4/4.5 " pinskia at gcc dot gnu dot org
2009-08-04 12:34 ` rguenth at gcc dot gnu dot org
2009-09-20 20:20 ` pinskia at gcc dot gnu dot org
2010-01-19 16:17 ` rguenth at gcc dot gnu dot org
2010-05-22 19:00 ` [Bug target/27855] [4.3/4.4/4.5/4.6 " 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=20060603023833.10028.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).