[PATCH] D136163: Port PlaceSafepoints pass to the new pass manager

Jan Dupej (MSFT) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 05:45:39 PDT 2022


jandupej created this revision.
jandupej added a reviewer: fhahn.
jandupej added a project: LLVM.
Herald added subscribers: mgrang, hiraditya.
Herald added a project: All.
jandupej requested review of this revision.
Herald added a subscriber: llvm-commits.

This patch ports the PlaceSafepoints pass to the new pass manager as it is used by .NET/Mono. Compatibility with the legacy pass manager is maintained by adding PlaceSafepointsLegacyPass. This pass also depends on PlaceBackedgeSafepointsLegacyPass, which has been kept in the legacy-only variant, since it is apparently used only from PlaceSafepointsPass. It has been renamed, though, to indicate its legacy interface.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136163

Files:
  llvm/include/llvm/InitializePasses.h
  llvm/include/llvm/Transforms/Scalar/PlaceSafepoints.h
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
  llvm/lib/Transforms/Scalar/Scalar.cpp
  llvm/test/Transforms/PlaceSafepoints/basic.ll
  llvm/test/Transforms/PlaceSafepoints/call-in-loop.ll
  llvm/test/Transforms/PlaceSafepoints/finite-loops.ll
  llvm/test/Transforms/PlaceSafepoints/libcall.ll
  llvm/test/Transforms/PlaceSafepoints/memset.ll
  llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll
  llvm/test/Transforms/PlaceSafepoints/split-backedge.ll
  llvm/test/Transforms/PlaceSafepoints/statepoint-coreclr.ll
  llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136163.468498.patch
Type: text/x-patch
Size: 35082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221018/9b0c2603/attachment.bin>


More information about the llvm-commits mailing list