public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@cygnus.com>
To: egcs@cygnus.com
Subject: alpha haifa regression
Date: Sun, 28 Sep 1997 22:41:00 -0000	[thread overview]
Message-ID: <199709290539.WAA12011@dot.cygnus.com> (raw)

With the haifa scheduler, alpha fails 920908-1 with -O2.

What happens is, the insn that loads from the va_list gets moved
before the stores from the register variables.  It does this
because alias decides that a variable struct memory cannot alias
a non-variable non-struct memory.

It seems a bit hoaky to me, but then the C alias rules are a bit
perverse, so I'll assume this is correct.

The solution then, since we don't want to slow down normal code
where we _can_ make these assumptions, is to emit blockage after
dumping the varargs regs to memory.  


r~


Index: alpha.h
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/config/alpha/alpha.h,v
retrieving revision 1.3
diff -u -p -d -r1.3 alpha.h
--- alpha.h	1997/09/02 19:37:05	1.3
+++ alpha.h	1997/09/29 05:38:13
@@ -1052,6 +1052,7 @@ enum reg_class { NO_REGS, GENERAL_REGS, 
 		      plus_constant (virtual_incoming_args_rtx,		\
 				     (CUM) * UNITS_PER_WORD)),		\
 	     6 - (CUM), (6 - (CUM)) * UNITS_PER_WORD);			\
+	   emit_insn (gen_blockage ());					\
 	 }								\
       PRETEND_SIZE = 12 * UNITS_PER_WORD;				\
     }									\

             reply	other threads:[~1997-09-28 22:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-28 22:41 Richard Henderson [this message]
1997-09-28 23:19 ` Jeffrey A Law
1997-09-29 13:24 ` Jim Wilson
1997-09-29 13:27   ` Richard Henderson
1997-09-29 15:00     ` Jim Wilson
1997-09-29 15:14       ` Jeffrey A Law
1997-10-07 23:14         ` Joern Rennecke
1997-10-07 22:59           ` Jeffrey A Law
1997-10-07 23:14             ` Joern Rennecke
1997-10-07 17:21               ` Jeffrey A Law
1997-10-07 23:14                 ` Joern Rennecke
1997-10-07 23:14                   ` Jeffrey A Law
1997-10-07 15:21                     ` Joern Rennecke
1997-10-07 17:21                       ` Jeffrey A Law
1997-09-29 13:30   ` Jeffrey A Law
1997-09-29 15:05     ` Jim Wilson
1997-10-08  4:30 meissner

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=199709290539.WAA12011@dot.cygnus.com \
    --to=rth@cygnus.com \
    --cc=egcs@cygnus.com \
    /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).