peephole vs. scheduler

law@redhat.com law@redhat.com
Mon May 7 21:38:00 GMT 2001


  In message < 200105080103.SAA01979@scv3.apple.com >you write:
  > I have a case where I'd like to combine two insn's into one late in the 
  > game.  I have a nice short define_peephole that does just what I 
  > want.[*]   However, the scheduler is run first, and often disrupts the 
  > pattern I'm looking for.  I can get the scheduler not to do that by 
  > setting SCHED_GROUP_P on the second insn.  But the only way I can find 
  > to do that is by altering the scheduler code.  I'd like to have a hook, 
  > something like
  > MD_SCHED_CHECK_FOR_GROUP(insn)
  > to let me do this in a more controlled fashion.  Comments?
Ugh.  Gross.  Don't to that.

define_peephole2 or something close to that.


jeff



More information about the Gcc mailing list