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]

Re: peephole vs. scheduler


  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


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