[LLVMdev] [llvm-commits] Bottom-Up Scheduling?

Andrew Trick atrick at apple.com
Mon Nov 28 15:45:02 PST 2011


On Nov 28, 2011, at 3:35 PM, Hal Finkel wrote:

>> 
>> Is EmitInstruction used in bottom-up scheduling at all? The version in
>> the ARM recognizer seems essential, but in all of the regression tests
>> (and some other .ll files I have lying around), it is never called. It
>> seems that only Reset() and getHazardType() are called. Could you please
>> explain the calling sequence?
> 
> I feel that I should clarify my comment: For PPC, now that Hybrid
> scheduling is enabled, EmitInstruction seems never to be called (at
> least it is not called when running any PPC codegen test in the
> regression-test collection).


Hal,

Since PPCHazardRecognizer is not derived from ScoreboardHazardRecognizer, you'll need to initialize MaxLookAhead to the max depth of your target's itinerary.

 See how this is done in the ScoreboardHazardRecognizer ctor:
>    MaxLookAhead = ScoreboardDepth;
  

-Andy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111128/8271a6ce/attachment.html>


More information about the llvm-dev mailing list