public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/16294] New: Missed delay slot scheduling opportunity @ 2004-06-30 11:09 ebotcazou at gcc dot gnu dot org 2004-07-01 1:06 ` [Bug target/16294] [3.5 Regression] " pinskia at gcc dot gnu dot org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu dot org @ 2004-06-30 11:09 UTC (permalink / raw) To: gcc-bugs The RTL prologue/epilogue patch for SPARC: http://gcc.gnu.org/ml/gcc-patches/2004-06/msg01049.html introduced a regression with regard to delay slot scheduling and branches. For the testcase: void f (double*a, int m) { int j; for(j=0; j<m; j++) a[j]=1; } compiled at -O2 -mcpu=ultrasparc, the diff looks like: @@ -12,10 +12,9 @@ .type f, #function .proc 04 f: - !#PROLOGUE# 0 - !#PROLOGUE# 1 cmp %o1, 0 - ble,pn %icc, .LL5 + ble,pn %icc, .LL8 + nop sethi %hi(.LLC0), %g1 mov 0, %o5 ldd [%g1+%lo(.LLC0)], %f8 @@ -25,9 +24,9 @@ cmp %o1, %o5 bg,pt %icc, .LL4 std %f8, [%o0+%g1] -.LL5: - retl - nop +.LL8: + jmp %o7+8 + nop .size f, .-f .section ".rodata" .align 8 For testsuite/gcc.c-torture/compile/990517-1.c, the diff is: @@ -7,9 +7,7 @@ .type sdbm__splpage, #function .proc 020 sdbm__splpage: - !#PROLOGUE# 0 save %sp, -1168, %sp - !#PROLOGUE# 1 add %fp, -1056, %l6 mov %i0, %o1 mov 1024, %o2 @@ -26,7 +24,8 @@ mov 1024, %o2 ldsh [%fp-1056], %l4 cmp %l4, 0 - ble,pn %icc, .LL1 + ble,pn %icc, .LL10 + nop mov 1024, %l3 add %fp, -1064, %i5 add %fp, -1072, %l7 @@ -59,8 +58,8 @@ cmp %l4, 0 bg,pt %icc, .LL4 add %l5, 4, %l5 -.LL1: +.LL10: return %i7+8 - nop + nop .size sdbm__splpage, .-sdbm__splpage .ident "GCC: (GNU) 3.5.0 20040620 (experimental)" It appears that the compiler fails to realize that the value of the register doesn't matter on the non-fallthru edge pointing to the return. -- Summary: Missed delay slot scheduling opportunity Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ebotcazou at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc*-*-* GCC host triplet: sparc*-*-* GCC target triplet: sparc*-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16294 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16294] [3.5 Regression] Missed delay slot scheduling opportunity 2004-06-30 11:09 [Bug target/16294] New: Missed delay slot scheduling opportunity ebotcazou at gcc dot gnu dot org @ 2004-07-01 1:06 ` pinskia at gcc dot gnu dot org 2004-07-07 13:44 ` ebotcazou at gcc dot gnu dot org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-07-01 1:06 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Summary|Missed delay slot scheduling|[3.5 Regression] Missed |opportunity |delay slot scheduling | |opportunity Target Milestone|--- |3.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16294 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/16294] [3.5 Regression] Missed delay slot scheduling opportunity 2004-06-30 11:09 [Bug target/16294] New: Missed delay slot scheduling opportunity ebotcazou at gcc dot gnu dot org 2004-07-01 1:06 ` [Bug target/16294] [3.5 Regression] " pinskia at gcc dot gnu dot org @ 2004-07-07 13:44 ` ebotcazou at gcc dot gnu dot org 2004-07-11 12:43 ` [Bug rtl-optimization/16294] " ebotcazou at gcc dot gnu dot org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu dot org @ 2004-07-07 13:44 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-07-07 13:44 ------- Investigating. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-07-07 13:44:21 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16294 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/16294] [3.5 Regression] Missed delay slot scheduling opportunity 2004-06-30 11:09 [Bug target/16294] New: Missed delay slot scheduling opportunity ebotcazou at gcc dot gnu dot org 2004-07-01 1:06 ` [Bug target/16294] [3.5 Regression] " pinskia at gcc dot gnu dot org 2004-07-07 13:44 ` ebotcazou at gcc dot gnu dot org @ 2004-07-11 12:43 ` ebotcazou at gcc dot gnu dot org 2004-07-11 23:16 ` giovannibajo at libero dot it ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu dot org @ 2004-07-11 12:43 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-07-11 12:43 ------- Testing various patches against the reorg pass. -- What |Removed |Added ---------------------------------------------------------------------------- Component|target |rtl-optimization http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16294 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/16294] [3.5 Regression] Missed delay slot scheduling opportunity 2004-06-30 11:09 [Bug target/16294] New: Missed delay slot scheduling opportunity ebotcazou at gcc dot gnu dot org ` (2 preceding siblings ...) 2004-07-11 12:43 ` [Bug rtl-optimization/16294] " ebotcazou at gcc dot gnu dot org @ 2004-07-11 23:16 ` giovannibajo at libero dot it 2004-07-17 18:12 ` cvs-commit at gcc dot gnu dot org 2004-07-17 18:15 ` ebotcazou at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: giovannibajo at libero dot it @ 2004-07-11 23:16 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From giovannibajo at libero dot it 2004-07-11 23:16 ------- Patch posted: http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01167.html -- What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16294 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/16294] [3.5 Regression] Missed delay slot scheduling opportunity 2004-06-30 11:09 [Bug target/16294] New: Missed delay slot scheduling opportunity ebotcazou at gcc dot gnu dot org ` (3 preceding siblings ...) 2004-07-11 23:16 ` giovannibajo at libero dot it @ 2004-07-17 18:12 ` cvs-commit at gcc dot gnu dot org 2004-07-17 18:15 ` ebotcazou at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2004-07-17 18:12 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-07-17 18:12 ------- Subject: Bug 16294 CVSROOT: /cvs/gcc Module name: gcc Changes by: ebotcazou@gcc.gnu.org 2004-07-17 18:12:38 Modified files: gcc : ChangeLog resource.c Log message: PR rtl-optimization/16294 * resource.c (return_insn_p): New predicate. (mark_target_live_regs): Use it. Special-case return insns. (init_resource_info): Use it. Don't scan the epilogue past a return. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4586&r2=2.4587 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/resource.c.diff?cvsroot=gcc&r1=1.71&r2=1.72 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16294 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug rtl-optimization/16294] [3.5 Regression] Missed delay slot scheduling opportunity 2004-06-30 11:09 [Bug target/16294] New: Missed delay slot scheduling opportunity ebotcazou at gcc dot gnu dot org ` (4 preceding siblings ...) 2004-07-17 18:12 ` cvs-commit at gcc dot gnu dot org @ 2004-07-17 18:15 ` ebotcazou at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu dot org @ 2004-07-17 18:15 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-07-17 18:15 ------- Patch commited (with a slight tweak). -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16294 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-07-17 18:15 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-06-30 11:09 [Bug target/16294] New: Missed delay slot scheduling opportunity ebotcazou at gcc dot gnu dot org 2004-07-01 1:06 ` [Bug target/16294] [3.5 Regression] " pinskia at gcc dot gnu dot org 2004-07-07 13:44 ` ebotcazou at gcc dot gnu dot org 2004-07-11 12:43 ` [Bug rtl-optimization/16294] " ebotcazou at gcc dot gnu dot org 2004-07-11 23:16 ` giovannibajo at libero dot it 2004-07-17 18:12 ` cvs-commit at gcc dot gnu dot org 2004-07-17 18:15 ` ebotcazou 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).