llvm-project
144ddca9 - [MemProf] Avoid duplicate edges between nodes (#113337)

Commit
1 year ago
[MemProf] Avoid duplicate edges between nodes (#113337) The recent change to add support for cloning indirect calls inadvertantly caused duplicate edges to be created between the same caller/callee pair. This is due to the new moveCalleeEdgeToNewCaller not properly guarding the addition of a new edge (ironically I was testing for that in an assertion, but failed to handle that case specially otherwise). Now simply move the context ids over to any existing edge. This issue in turn led to some assumptions in cloning being violated, resulting in a later crash. Add a test for this case to checkNode.
Author
Parents
Loading