diff options
-rw-r--r-- | include/llvm/Transforms/Scalar/ConstantProp.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/llvm/Transforms/Scalar/ConstantProp.h b/include/llvm/Transforms/Scalar/ConstantProp.h index bbcd609be0..999e7ffe4d 100644 --- a/include/llvm/Transforms/Scalar/ConstantProp.h +++ b/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 <class Unit> bool DoSCCP(Unit *M) { - return DoSparseConditionalConstantProp(M); +bool DoSCCP(Method *M); +static inline bool DoSCCP(Module *M) { + return M->reduceApply(DoSCCP); } } // End Namespace opt |