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: condition codes, haifa-sched and virtual-stack-vars


On Jan 30, 2002, Greg McGary <greg@mcgary.org> wrote:

> Haifa-sched schedules the move from virtual-stack-vars between the
> bitfield test sequence and the branch.  Later, global-reg alloc
> instantiates virtual-stack-vars as an offset from FP, so the move
> mutates into an add of fp+offset, clobbering the condition codes
> computed earlier in the bitfield test.

How about having a pre-reload move pattern that clobbers CC, split
after reload into one that does not, so that sched2 could put the move
between compare and branch should it indeed not affect CC?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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