[PATCH] D25482: [PPC] Allow two post RA schedulers to be in the pipeline and select one depending on the Machine Function's subtarget

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 18:45:11 PDT 2016


amehsan added a comment.

In https://reviews.llvm.org/D25482#585510, @MatzeB wrote:

> In https://reviews.llvm.org/D25482#585491, @amehsan wrote:
>
> > In https://reviews.llvm.org/D25482#585490, @MatzeB wrote:
> >
> > > In https://reviews.llvm.org/D25482#585479, @amehsan wrote:
> > >
> > > > > 
> > > > > 
> > > > >> 2- targetSchedulesPostRAScheduling
> > > > > 
> > > > > This seems redundant to me as soon as 1) is implemented.
> > > >
> > > > Maybe I am missing something, but this seems different from (1). Note that addPostRASched is called from addMachinePasses which is not typically overriden by targets. SystemZ has a usecase for targetSchedulesPostRAScheduling which cannot be covered by (1).
> > >
> > >
> > > Overriding addPostRASched() with an empty function has the same effect as returning true in targetSchedulesPostRAScheduling(), hasn't it?
> >
> >
> > Correct :)
>
>
> So we can remove targetSchedulesPostRAScheduling() and replace it with the empty function overload after adding addPostRASched().


That's a reasonable change for this patch. I'll wait to see Eric's comments well, before updating the patch though. Just to save time.


https://reviews.llvm.org/D25482





More information about the llvm-commits mailing list