This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: scheduling cc0


On Wednesday 02 February 2005 11:37, Miles Bader wrote:
> This approach seems to work well in practice, but can anyone see any
> potential problems with it?

Well, isn't it a potential problem that lots of places in the compiler
expect that the cc0 setter is right before the cc0-using insn?   And if
you do this kind of scheduling before reload, what happens if reload
has to insert insns that set cc0?

> Is this a reasonable way to do things? 

The "recommended practice" of today is to use a fake hard register for
the CC reg, always, instead of cc0.  
See e.g. "http://gcc.gnu.org/wiki/general backend cleanup", under
"Convert md files that use CC0 so they don't anymore."

Unfortunately the v850 targets is one of the few GCC targets that still
use cc0 for the condition code, see http://gcc.gnu.org/backends.html. 

Gr.
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]