This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: condition codes, haifa-sched and virtual-stack-vars
- From: Ulrich Weigand <weigand at immd1 dot informatik dot uni-erlangen dot de>
- To: rth at redhat dot com (Richard Henderson)
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 31 Jan 2002 23:53:38 +0100 (MET)
- Subject: Re: condition codes, haifa-sched and virtual-stack-vars
Richard Henderson wrote:
> On Wed, Jan 30, 2002 at 10:41:43PM +0100, Ulrich Weigand wrote:
> > On s390, while we do have a load-address pattern, it is somewhat
> > restricted (e.g. it accepts only immediate offsets in the 0..4095
> > range). I've tried to trick reload into using LA anyway, by
> > providing a generic 'add' pattern and splitters to massage the
> > result into a form acceptable by LA afterward.
>
> On i386 we have a peephole2 that converts lea to add if the
> flags register is dead.
Thanks for the tip, I'll look into that approach on s390.
Bye,
Ulrich
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de