Eliminate DoConstantPoolMerging. ConstantPools no longer exist
authorChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 16:29:40 +0000 (16:29 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 16:29:40 +0000 (16:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@437 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Scalar/ConstantProp.h

index 999e7ffe4d9da2f679c5d73f46fe3731f92a2f03..7d86ac3250a92e4adbdc4d7093113eb5ccc0edec 100644 (file)
@@ -10,7 +10,6 @@
 #include "llvm/Module.h"
 class Method;
 class TerminatorInst;
-class ConstantPool;
 
 namespace opt {
 
@@ -30,21 +29,6 @@ static inline bool DoConstantPropogation(Module *M) {
 bool ConstantFoldTerminator(TerminatorInst *T);
 
 
-//===----------------------------------------------------------------------===//
-// Constant Pool Merging Pass
-//
-// This function merges all constants in the specified constant pool that have
-// identical types and values.  This is useful for passes that generate lots of
-// constants as a side effect of running.
-//
-bool DoConstantPoolMerging(ConstantPool &CP);
-bool DoConstantPoolMerging(Method *M);
-
-static inline bool DoConstantPoolMerging(Module *M) {
-  return M->reduceApply(DoConstantPoolMerging) |
-         DoConstantPoolMerging(M->getConstantPool());
-}
-
 //===----------------------------------------------------------------------===//
 // Sparse Conditional Constant Propogation Pass
 //