[PATCH] D83718: [CallGraph] Update callback call sites in RefreshCallGraph

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 14:12:00 PDT 2020


jdoerfert created this revision.
jdoerfert added a reviewer: sdmitriev.
Herald added subscribers: bbn, sstefan1, bollu, hiraditya.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.

Since D82572 <https://reviews.llvm.org/D82572>, we keep "reference" edges for callback call sites. While
not strictly necessary they can improve the traversal order. However, we
did not update them properly in case a pass removed the callback call
site which caused a verification error (PR46687). With this patch we
update these reference edges properly during the invocation of
`CallGraphSCCPass::RefreshCallGraph` in non-checking mode.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83718

Files:
  llvm/lib/Analysis/CallGraphSCCPass.cpp
  llvm/test/Transforms/OpenMP/parallel_deletion_cg_update.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83718.277565.patch
Type: text/x-patch
Size: 7019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200713/15dd4619/attachment.bin>


More information about the llvm-commits mailing list