<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 10, 2015 at 11:13 AM Hal Finkel <<a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> I don’t know for the other passes, but I don’t think it makes sense<br>
> to teach PrologEpilogInserter to work on virtual registers, since<br>
> part of its job is to get rid of any virtual registers created when<br>
> lowering the frame.<br>
> I.e., that would indirectly mean that we would need to teach the<br>
> scavenger how to recycle virtual registers!<br>
><br>
<br>
I think this is exactly the part of PEI that they disable.<br><br></blockquote><div> </div><div> </div><div>Yes; see  <a href="http://reviews.llvm.org/D15394" class="cremed">http://reviews.llvm.org/D15394</a></div><div>If the target has no callee-saved registers and you disable scavenging, you're basically left with.... prolog/epilog insertion and FrameIndex elimination.</div></div></div>