diff --git a/llvm/include/llvm/Transforms/Scalar/ConstantProp.h b/llvm/include/llvm/Transforms/Scalar/ConstantProp.h index bbcd609be05d..999e7ffe4d9d 100644 --- a/llvm/include/llvm/Transforms/Scalar/ConstantProp.h +++ b/llvm/include/llvm/Transforms/Scalar/ConstantProp.h @@ -49,15 +49,9 @@ static inline bool DoConstantPoolMerging(Module *M) { // Sparse Conditional Constant Propogation Pass // -bool DoSparseConditionalConstantProp(Method *M); - -static inline bool DoSparseConditionalConstantProp(Module *M) { - return M->reduceApply(DoSparseConditionalConstantProp); -} - -// Define a shorter version of the name... -template bool DoSCCP(Unit *M) { - return DoSparseConditionalConstantProp(M); +bool DoSCCP(Method *M); +static inline bool DoSCCP(Module *M) { + return M->reduceApply(DoSCCP); } } // End Namespace opt