<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 28, 2011, at 3:35 PM, Hal Finkel wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><blockquote type="cite"><br class="Apple-interchange-newline">Is EmitInstruction used in bottom-up scheduling at all? The version in<br></blockquote><blockquote type="cite">the ARM recognizer seems essential, but in all of the regression tests<br></blockquote><blockquote type="cite">(and some other .ll files I have lying around), it is never called. It<br></blockquote><blockquote type="cite">seems that only Reset() and getHazardType() are called. Could you please<br></blockquote><blockquote type="cite">explain the calling sequence?<br></blockquote><br>I feel that I should clarify my comment: For PPC, now that Hybrid<br>scheduling is enabled, EmitInstruction seems never to be called (at<br>least it is not called when running any PPC codegen test in the<br>regression-test collection).</div></span></blockquote></div><div><br></div>Hal,<div><br></div><div>Since PPCHazardRecognizer is not derived from ScoreboardHazardRecognizer, you'll need to initialize MaxLookAhead to the max depth of your target's itinerary.<br><div><br></div><div> See how this is done in the ScoreboardHazardRecognizer ctor:</div><div>>    MaxLookAhead = ScoreboardDepth;</div><div><div><div>  </div></div></div></div><div><br></div><div>-Andy</div><div><br></div></body></html>