[llvm-dev] How to correctly model resource constraints for in-order scheduling model

escha via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 28 08:51:39 PDT 2015


> On Aug 28, 2015, at 8:04 AM, Ziqiang Patrick Huang via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi, 
> 
> I'm experimenting with the MachineScheduler by providing a subtarget scheduling model. 
> 
> Say I have a 2-wide in-order machine that has 2 load/store unit, so I can issue 2 independent loads per cycle. 
> 
> By referencing TargetSchedule.td, 
> 
> it seems like I should do
> 
> def MyTargetLdStUnit : ProcResource<2> { let BufferSize = 0 ;}

Did you make sure to set the number of micro-ops per cycle to 2?

—escha


More information about the llvm-dev mailing list