From e62c54375d2e75acaaa1394de99f4f61462e7530 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sun, 15 May 2016 08:04:28 +0000 Subject: [PM/SCCP] Fix pass dependencies. TargetLibraryInfoWrapperPass is a dependency of SCCP but it's not listed as such. Chandler pointed out this is an easy mistake to make which only surfaces in weird crashes with some flag combinations. This code will go away anyway at some point in the future, but as long as it's (still) exercised, try to make it correct. llvm-svn: 269589 --- llvm/lib/Transforms/Scalar/SCCP.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index e9fe766ba6f..dafaa2af81a 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1573,8 +1573,11 @@ namespace { } // end anonymous namespace char SCCP::ID = 0; -INITIALIZE_PASS(SCCP, "sccp", +INITIALIZE_PASS_BEGIN(SCCP, "sccp", "Sparse Conditional Constant Propagation", false, false) +INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass) +INITIALIZE_PASS_END(SCCP, "sccp", + "Sparse Conditional Constant Propagation", false, false) // createSCCPPass - This is the public interface to this file. FunctionPass *llvm::createSCCPPass() { -- cgit v1.2.3