<div dir="ltr"><div>Hi,</div><div><br></div><div>On my target, grouping load/store together almost always gives better performance even if it increases register pressure. </div><div><br></div><div>Basically I want code like this:</div>
load r1, addr1<div> instr r1, x, y</div><div> store addr2 r1</div><div> load r1, addr3<br></div><div><div> instr r1, x, y</div><div> store addr4 r1</div></div><div><br></div><div>to be rewritten as:</div><div> load r1, addr1<div>
load r2, addr3<br></div><div></div><div> instr r1, x, y</div><div> instr r2, x, y<br></div><div></div><div> store addr2, r1</div><div> store addr4, r2<br></div></div><div><br></div><div>I enabled the AggressiveAntiDepBreaker pass and it actually works for a lot of case but not always. </div>
<div>What would be the best way to guarantee that load/store are grouped and executed together? </div><div><br></div><div>Thanks,<br></div><div>Francois Pichet, Octasic.</div></div>