<div dir="ltr">Hello,<div><br></div><div>I was looking at how the memory for MachineBasicBlocks is managed and something seems strange.</div><div><br></div><div>On one hand, a MachineFunction uses a recycling allocator to create and destroy MBBs without costly heap allocation (the same is done for MachineInstrs, MachineOperands, etc.).</div>
<div><br></div><div>On the other hand, each MBB also has a number of STL vectors within it. For example, for Predecessors, Successors, Weights, LiveIns. Maintaining these vectors involves heap allocation and they don't have custom allocators, AFAICS. </div>
<div><br></div><div>Is there some magic I'm missing here, or does this make little sense?</div><div><br></div><div>Eli</div><div><br></div></div>