================ @@ -614,6 +614,61 @@ void VPBasicBlock::print(raw_ostream &O, const Twine &Indent, printSuccessors(O, Indent); } #endif +static void cloneCFG(VPBlockBase *Entry, + DenseMap<VPBlockBase *, VPBlockBase *> &Old2NewVPBlocks); ---------------- ayalz wrote:
This cloning is recursive, so perhaps more accurately called `cloneHCFG()`. It also clones a (maximal(*)) SESE region, so could be called `cloneSESE()`, and return a pair of VPB's - the new entry and new exit? Could `Old2NewVPBlocks` map be internal to the function, rather than an in/out parameter? (*) There are currently two callees: the top-level of VPlan consisting of the vector-loop-preheader - loop-region - middle-block, and the internal CFG of a region from its entry/header to its exit(ing)/latch. https://github.com/llvm/llvm-project/pull/73158 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits