Revert "Remove PlaceSafepoints pass"
authorPhilip Reames <preames@rivosinc.com>
Thu, 13 Oct 2022 14:08:35 +0000 (07:08 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 13 Oct 2022 14:17:25 +0000 (07:17 -0700)
commitfe755af3a9a56a23494ed231d1b007a9a7b91174
treeaee569415bcd04e991f4e9232cf66cd178e2248e
parentbe0d427a149aa52aa2fe284ead2f2c1a2578a70f
Revert "Remove PlaceSafepoints pass"

This reverts commit cb66e123c6bc82a793300b6fb3ecbed79c58f557.  It was reported via https://reviews.llvm.org/rGcb66e123c6bc82a793300b6fb3ecbed79c58f557#1132969 that the Microsoft.NET compiler is still using this pass.
17 files changed:
llvm/docs/GarbageCollection.rst
llvm/docs/Statepoints.rst
llvm/include/llvm/InitializePasses.h
llvm/include/llvm/Transforms/Scalar.h
llvm/lib/Transforms/Scalar/CMakeLists.txt
llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp [new file with mode: 0644]
llvm/lib/Transforms/Scalar/Scalar.cpp
llvm/test/Transforms/PlaceSafepoints/basic.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/call-in-loop.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/finite-loops.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/libcall.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/memset.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/no-statepoints.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/split-backedge.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/statepoint-coreclr.ll [new file with mode: 0644]
llvm/test/Transforms/PlaceSafepoints/statepoint-frameescape.ll [new file with mode: 0644]
llvm/utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn