<div dir="ltr">Is there a way to place a bundle a BUNDLE instruction into a packet with one instruction? Current code to end packet doesn't handle this case:<br><br>// endPacket - End the current packet, bundle packet instructions and reset<br>// DFA state.<br>void VLIWPacketizerList::endPacket(MachineBasicBlock *MBB,<br>                                         MachineInstr *MI) {<br>  if (CurrentPacketMIs.size() > 1) {<br>    MachineInstr *MIFirst = CurrentPacketMIs.front();<br>    finalizeBundle(*MBB, MIFirst, MI);<br>  }<br>  CurrentPacketMIs.clear();<br>  ResourceTracker->clearResources();<br>}<br><br clear="all"><div><div><div>My initial idea was to simply add a NOP instruction to the CurrentPacketMIs, but it is proving to be more difficult than I thought. Would anyone care to help?<br></div><div><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div></div></div>