public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/21002] New: RTL prologue and basic-block reordering pessimizes delay-slot filling
@ 2005-04-13 19:20 hp at gcc dot gnu dot org
  2005-04-13 19:21 ` [Bug rtl-optimization/21002] " hp at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-04-13 19:20 UTC (permalink / raw)
  To: gcc-bugs

This with LAST_UPDATED "Wed Apr 13 18:35:48 UTC 2005", just
after committing CRIS prologue as RTL.

Compare the assembly of the attached file (a pruned version
corresponding to the fp-bit libgcc object _pack_df.o)
compiled at -O2 with to a few minutes before that LAST_UPDATED.

Also observable with -mno-prologue-epilogue as follows:
--- packd.s     2005-04-13 21:13:39.448893527 +0200
+++ packd.s.proepi      2005-04-13 21:13:19.986146213 +0200
@@ -4,6 +4,8 @@
        .global ___pack_d
        .type   ___pack_d, @function
 ___pack_d:
+       subq 32,$sp
+       movem $r5,[$sp]
        move.d [$r10+12],$r2
        move.d [$r10+16],$r3
        move.d [$r10+4],$r5
@@ -15,21 +17,19 @@ ___pack_d:
        beq .L5
        cmpq 2,$r9

-       beq .L37
-       clear.d $r0
-
+       beq .L7
+       nop
        test.d $r2
        ax
        test.d $r3
-       beq .L38
-       clear.d $r1
-
+       beq .L7
+       nop
        move.d [$r10+8],$r4

The first two delay-slots aren't filled any more, when having an RTL prologue
(and epilogue).  The unexpected/unwanted difference goes away with
-fno-reorder-blocks.  Issue noted here awaiting further investigation.

-- 
           Summary: RTL prologue and basic-block reordering pessimizes
                    delay-slot filling
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: cris-axis-elf


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


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

* [Bug rtl-optimization/21002] RTL prologue and basic-block reordering pessimizes delay-slot filling
  2005-04-13 19:20 [Bug rtl-optimization/21002] New: RTL prologue and basic-block reordering pessimizes delay-slot filling hp at gcc dot gnu dot org
@ 2005-04-13 19:21 ` hp at gcc dot gnu dot org
  2005-04-13 22:48 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-04-13 19:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-04-13 19:21 -------
Created an attachment (id=8620)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8620&action=view)
testcase mentioned in description


-- 


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


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

* [Bug rtl-optimization/21002] RTL prologue and basic-block reordering pessimizes delay-slot filling
  2005-04-13 19:20 [Bug rtl-optimization/21002] New: RTL prologue and basic-block reordering pessimizes delay-slot filling hp at gcc dot gnu dot org
  2005-04-13 19:21 ` [Bug rtl-optimization/21002] " hp at gcc dot gnu dot org
@ 2005-04-13 22:48 ` pinskia at gcc dot gnu dot org
  2005-04-14  6:27 ` ebotcazou at gcc dot gnu dot org
  2005-04-16 16:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 22:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug rtl-optimization/21002] RTL prologue and basic-block reordering pessimizes delay-slot filling
  2005-04-13 19:20 [Bug rtl-optimization/21002] New: RTL prologue and basic-block reordering pessimizes delay-slot filling hp at gcc dot gnu dot org
  2005-04-13 19:21 ` [Bug rtl-optimization/21002] " hp at gcc dot gnu dot org
  2005-04-13 22:48 ` pinskia at gcc dot gnu dot org
@ 2005-04-14  6:27 ` ebotcazou at gcc dot gnu dot org
  2005-04-16 16:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-04-14  6:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-04-14 06:27 -------
I'm interested too. :-)  FWIW, when I did the transition on SPARC, I compared
the assembly code generated for all testcases in gcc.c-torture/compile at -O2;
IIRC there were a few regressions related to delay-slot filling too, but I think
I eliminated them with a couple of patches (probably to reorg.c).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org


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


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

* [Bug rtl-optimization/21002] RTL prologue and basic-block reordering pessimizes delay-slot filling
  2005-04-13 19:20 [Bug rtl-optimization/21002] New: RTL prologue and basic-block reordering pessimizes delay-slot filling hp at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-04-14  6:27 ` ebotcazou at gcc dot gnu dot org
@ 2005-04-16 16:44 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-16 16:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-16 16:44 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-16 16:44:37
               date|                            |


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


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

end of thread, other threads:[~2005-04-16 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 19:20 [Bug rtl-optimization/21002] New: RTL prologue and basic-block reordering pessimizes delay-slot filling hp at gcc dot gnu dot org
2005-04-13 19:21 ` [Bug rtl-optimization/21002] " hp at gcc dot gnu dot org
2005-04-13 22:48 ` pinskia at gcc dot gnu dot org
2005-04-14  6:27 ` ebotcazou at gcc dot gnu dot org
2005-04-16 16:44 ` pinskia 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).