From 376294c23a047c19097a0603c3890ebdda86bff8 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 22 Mar 2018 22:07:53 +0000 Subject: [PATCH] Finish moving the IPSCCP pass from Scalar to IPO - moving the registration llvm-svn: 328259 --- llvm/lib/Transforms/IPO/IPO.cpp | 1 + llvm/lib/Transforms/Scalar/Scalar.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/IPO.cpp b/llvm/lib/Transforms/IPO/IPO.cpp index 54e881cce3f4..7e9c63b1abc1 100644 --- a/llvm/lib/Transforms/IPO/IPO.cpp +++ b/llvm/lib/Transforms/IPO/IPO.cpp @@ -48,6 +48,7 @@ void llvm::initializeIPO(PassRegistry &Registry) { initializePostOrderFunctionAttrsLegacyPassPass(Registry); initializeReversePostOrderFunctionAttrsLegacyPassPass(Registry); initializePruneEHPass(Registry); + initializeIPSCCPLegacyPassPass(Registry); initializeStripDeadPrototypesLegacyPassPass(Registry); initializeStripSymbolsPass(Registry); initializeStripDebugDeclarePass(Registry); diff --git a/llvm/lib/Transforms/Scalar/Scalar.cpp b/llvm/lib/Transforms/Scalar/Scalar.cpp index f5b11d539843..5167d22848ee 100644 --- a/llvm/lib/Transforms/Scalar/Scalar.cpp +++ b/llvm/lib/Transforms/Scalar/Scalar.cpp @@ -82,7 +82,6 @@ void llvm::initializeScalarOpts(PassRegistry &Registry) { initializeRegToMemPass(Registry); initializeRewriteStatepointsForGCLegacyPassPass(Registry); initializeSCCPLegacyPassPass(Registry); - initializeIPSCCPLegacyPassPass(Registry); initializeSROALegacyPassPass(Registry); initializeCFGSimplifyPassPass(Registry); initializeStructurizeCFGPass(Registry);