From 4b86d7904863b3d0e552db37f455fe76430e6d46 Mon Sep 17 00:00:00 2001 From: Fedor Sergeev Date: Fri, 15 Dec 2017 09:32:11 +0000 Subject: [PM] port Rewrite Statepoints For GC to the new pass manager. Summary: The port is nearly straightforward. The only complication is related to the analyses handling, since one of the analyses used in this module pass is domtree, which is a function analysis. That requires asking for the results of each function and disallows a single interface for run-on-module pass action. Decided to copy-paste the main body of this pass. Most of its code is requesting analyses anyway, so not that much of a copy-paste. The rest of the code movement is to transform all the implementation helper functions like stripNonValidData into non-member statics. Extended all the related LLVM tests with new-pass-manager use. No failures. Reviewers: sanjoy, anna, reames Reviewed By: anna Subscribers: skatkov, llvm-commits Differential Revision: https://reviews.llvm.org/D41162 llvm-svn: 320796 --- llvm/test/Transforms/RewriteStatepointsForGC/invokes.ll | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/test/Transforms/RewriteStatepointsForGC/invokes.ll') diff --git a/llvm/test/Transforms/RewriteStatepointsForGC/invokes.ll b/llvm/test/Transforms/RewriteStatepointsForGC/invokes.ll index afcb6ad559d..d9ebd302913 100644 --- a/llvm/test/Transforms/RewriteStatepointsForGC/invokes.ll +++ b/llvm/test/Transforms/RewriteStatepointsForGC/invokes.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -S -rewrite-statepoints-for-gc | FileCheck %s +; RUN: opt < %s -S -passes=rewrite-statepoints-for-gc | FileCheck %s declare i64 addrspace(1)* @some_call(i64 addrspace(1)*) declare i32 @personality_function() -- cgit v1.2.3