<div dir="ltr">Hi, LLVM list,<div><br></div><div>I am using Post-RA scheduler to reorder instructions. by now, it's helpful for our processor but I meet a trouble. In our ISA, we have fixed instruction pairs. that is to say, our cpu must see instrA right before instrB. it's not acceptable to have any instruction between them. we call it an instruction pair. </div>
<div><br></div><div>The problem is I am not aware of describing this kind of constraint in TD or cpp code. Post-RA scheduler may insert an instruction between instruction pair. Does any other ISA have similar constraints and how do you solve this problem? I know newer llvm has switched to MI-sched. I observed this same issue. </div>
<div><br></div><div>on my side, I defined some intrinsics which represent instruction pairs. Instruction-scheduler can not guarantee they appear consecutive in final instructions. </div><div><br></div><div>thanks,</div><div>
--lx</div><div><br></div></div>