<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>hi,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I have few question about breaking anti-dependence of postRAScheduler in LLVM. </div><div>when I use command line "clang -target arm -mcpu=cortex-a8 -O2 -integrated-as -c test.c -o test.o"<span class="Apple-tab-span" style="white-space:pre">     </span></div><div>and get objdump file as follows:</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>ldr<span class="Apple-tab-span" style="white-space:pre"> </span>r1, [r0,#16]----(1</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>str r1, [r0,#32]----(2</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>ldr r1, [r0,#12]----(3</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>str r1, [r0,#36]----(4</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>ldr r1, [r0,#08]----(5</div>!
 <div><span class="Apple-tab-span" style="white-space:pre">     </span>str r1, [r0,#40]----(6</div><div>However, I expect that instruction pairs (1,2), (3,4) and (5,6) use different registers after postRAScheduler pass.</div><div>Then, I find that postRAScheduler only handle anti-dependence mode after debug LLVM source code. </div><div>More while I use gcc to compile test.c and get expected result.</div><div>Is it this compiler's drawbacks? Is any developer doing this function?</div><div>it's my pleasure if any suggestion.</div><div>Thanks.</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>