<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Alex,<div class=""><br class=""></div><div class="">Any of the heuristics that minimize register pressure would tend to shorten live ranges. Machine schedulers can certainly add their own heuristics on top of that.</div><div class=""><br class=""></div><div class="">-Andy<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 4, 2018, at 2:55 PM, Alexey Zhikhartsev <<a href="mailto:alexey.zhikhar@gmail.com" class="">alexey.zhikhar@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class=""><div class="gmail_quote" dir="auto"><div dir="ltr" class="">Hi everyone,</div><div lang="EN-US" link="#0563C1" vlink="#954F72" class=""><div class="m_-3454990749340696813WordSection1"><p class="MsoNormal"><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">Here, Florian Hahn talks about PreRA instruction scheduling:
<a href="https://youtu.be/brpomKUynEA?t=582" target="_blank" rel="noreferrer" class="">https://youtu.be/brpomKUynEA?t=582</a><u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">Florian mentions that one of its main goals is to schedule defs and uses closer together to shorten live ranges and decrease the chance of spills. My question is: where is the code that specifically implements this logic of putting defs
 and their corresponding uses closer together? I was expecting to find relevant code in MachineScheduler.cpp GenericScheduler but couldn't. Any pointers would be appreciated.<u class=""></u><u class=""></u></p><p class="MsoNormal"><u class=""></u> <u class=""></u></p><p class="MsoNormal">Best,</p><p class="MsoNormal">Alex</p><p class="MsoNormal"><u class=""></u></p>
</div>
</div>

</div></div>
</div></blockquote></div><br class=""></div></body></html>