[LLVMdev] Duplicating a Basic Block

ambika ambika at cse.iitb.ac.in
Wed Jun 2 12:24:20 PDT 2010


I want to duplicate a set of basic blocks and finally modify the 
structure of CFG.
But if I just duplicate a block then name of all the  temporaries will 
be same as in original block.

So is there a way to rename all the temporaries in a basic block or I 
will have to do it instruction by instruction?

Thanks and Regards,

More information about the llvm-dev mailing list