[MemProf] Context disambiguation cloning pass [patch 2/3]
Performs cloning on the CallsiteContextGraph (not on the IR or summary index), in order to uniquely identify the allocation behavior of an allocation call given its context. In order to do this, the graph is recursively traversed starting from the allocation nodes, until we identify a point where the allocation behavior is unambiguous (the edges have a single allocation type). Nodes are then cloned as we unwind the recursion. We try to perform the minimal amount of cloning required to disambiguate the contexts. The follow-on patch will contain the support for applying the cloning to the IR. Depends on D140908 and D145836. Differential Revision: https://reviews.llvm.org/D140949
Loading
Please sign in to comment