[PlaceSafepoints] Switch to being a FunctionPass
authorPhilip Reames <listmail@philipreames.com>
Tue, 12 May 2015 21:21:18 +0000 (21:21 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 12 May 2015 21:21:18 +0000 (21:21 +0000)
commit7b9817927ab3c88527907bf0a87f0ef326a050d8
treebd9fa59e1538dcd8b485be47b6ff1fdc6900ffc0
parentbef5ff3035f7b19422184394beec0ed5904e60fe
[PlaceSafepoints] Switch to being a FunctionPass

The pass doesn't actually modify the module outside of the function being processed. The only confusing piece is that it both inserts calls and then inlines the resulting calls. Given that, it definitely invalidates module level analysis results, but many FunctionPasses do that.

Differential Revision: http://reviews.llvm.org/D9590

llvm-svn: 237185
llvm/include/llvm/Transforms/Scalar.h
llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp