[LLVMdev] MachineBasicBlocks Cloning

Micah Villmow micah.villmow at smachines.com
Wed Jul 31 09:22:57 PDT 2013

Cloning a basic block should be a utility function that can be called from any machine pass.

That being said, it should only be responsible for cloning the basic block and not updating any analysis passes that were run on the basic block. Those should have to be rerun separately.


> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Nico
> Sent: Wednesday, July 31, 2013 5:16 AM
> To: LLVM Developers Mailing List
> Subject: [LLVMdev] MachineBasicBlocks Cloning
> Hi,
> For some schedulers like Trace Scheduling it is necessary to clone basic
> blocks.
> Instinctively I would think the "Machine Instruction Scheduler" would be the
> right place to do so.
> Is it possible to clone MachineBasicBlocks in the "Machine Instruction
> Scheduler" pass? Any snares? Or is it to much effort to implement it there
> and there is a better place for such things?
> Thank you,
> Nico
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list