<div dir="ltr"><div>Hi, all.<br></div><div><br></div><div>I have a question about the machine scheduler support of call instruction. <br><br>For now SDNode scheduler is made to keep instructions in source order when enable machine scheduler as default scheduler. But machine scheduler can not schedule call instruction so that the case as following can cause spills(more register usage) in prologue because the calculation can not be scheduled together and the source sequence is not efficient(reg pressure and latency) . Is there any good solution to fix this? Is there any plan to support machine scheduling across call? </div><div><br>```<br>int t;<br>__attribute__((noinline)) void g() {t+=3;}<br>int foo(int m, int n) {<br><br>        int t = m *3;<br>        int q = m/3;<br>        int q1 = m/31;<br>        int q2 = m/32;<br>        int q3 = m/33;<br>        g();<br><br>        return t+q+q1+q2+q3;<br>}</div><div><br></div><div>```</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Zeson<br></div></div></div>