This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: BCT optimization
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: BCT optimization
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 30 Sep 1998 13:11:02 -0600
- cc: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>, Michael Hayes <michaelh at ongaonga dot chch dot cri dot nz>, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <9809291910.AA33794@marc.watson.ibm.com>you write:
> Currently the BCT initialization code is quite PowerPC-specific: a
> GPR and a COUNT_REGISTER_REGNUM register are generated.
Get rid of the magic COUNT_REGISTER_REGNUM stuff. There's no reason to use a
hard register. Use a pseudo and let the register allocators and reload DTRT.
It'll probably mean that you'll need to define some secondary reloads to get
data in/out of the count reg, but it's really the right way to go.
jeff