diff options
author | Owen Anderson <resistor@mac.com> | 2007-06-20 00:43:33 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-06-20 00:43:33 +0000 |
commit | 5dbea73e35a5e07d43c5f7e7abbc36bac20bad14 (patch) | |
tree | 0cabb2ba2dff8fa3b1074e84ed7e02f6795ae2de | |
parent | 97e604e7d861cfdfba9fcf720854a3399729bef0 (diff) | |
download | external_llvm-5dbea73e35a5e07d43c5f7e7abbc36bac20bad14.zip external_llvm-5dbea73e35a5e07d43c5f7e7abbc36bac20bad14.tar.gz external_llvm-5dbea73e35a5e07d43c5f7e7abbc36bac20bad14.tar.bz2 |
Get rid of an unneeded helper function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37670 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/GVNPRE.cpp | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp index e261d78..a6e52ae 100644 --- a/lib/Transforms/Scalar/GVNPRE.cpp +++ b/lib/Transforms/Scalar/GVNPRE.cpp @@ -338,7 +338,6 @@ namespace { // Helper fuctions // FIXME: eliminate or document these better void dump(const std::set<Value*>& s) const; - void dump_unique(const std::set<Value*>& s) const; void clean(std::set<Value*>& set); Value* find_leader(std::set<Value*>& vals, uint32_t v); @@ -657,15 +656,6 @@ void GVNPRE::dump(const std::set<Value*>& s) const { DOUT << "}\n\n"; } -void GVNPRE::dump_unique(const std::set<Value*>& s) const { - DOUT << "{ "; - for (std::set<Value*>::iterator I = s.begin(), E = s.end(); - I != E; ++I) { - DEBUG((*I)->dump()); - } - DOUT << "}\n\n"; -} - void GVNPRE::elimination() { DOUT << "\n\nPhase 3: Elimination\n\n"; @@ -679,7 +669,7 @@ void GVNPRE::elimination() { BasicBlock* BB = DI->getBlock(); DOUT << "Block: " << BB->getName() << "\n"; - dump_unique(availableOut[BB]); + dump(availableOut[BB]); DOUT << "\n\n"; for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); @@ -802,7 +792,7 @@ bool GVNPRE::runOnFunction(Function &F) { } DOUT << "Maximal Set: "; - dump_unique(VN.getMaximalValues()); + dump(VN.getMaximalValues()); DOUT << "\n"; // If function has no exit blocks, only perform GVN @@ -839,7 +829,7 @@ bool GVNPRE::runOnFunction(Function &F) { DOUT << "\n"; DOUT << "EXP_GEN: "; - dump_unique(generatedExpressions[BB]); + dump(generatedExpressions[BB]); visited.insert(BB); std::set<Value*>& anticIn = anticipatedIn[BB]; @@ -876,7 +866,7 @@ bool GVNPRE::runOnFunction(Function &F) { } DOUT << "ANTIC_OUT: "; - dump_unique(anticOut); + dump(anticOut); DOUT << "\n"; std::set<Value*> S; @@ -912,7 +902,7 @@ bool GVNPRE::runOnFunction(Function &F) { clean(anticIn); DOUT << "ANTIC_IN: "; - dump_unique(anticIn); + dump(anticIn); DOUT << "\n"; if (old.size() != anticIn.size()) @@ -934,15 +924,15 @@ bool GVNPRE::runOnFunction(Function &F) { DOUT << "\n"; DOUT << "EXP_GEN: "; - dump_unique(generatedExpressions[I]); + dump(generatedExpressions[I]); DOUT << "\n"; DOUT << "ANTIC_IN: "; - dump_unique(anticipatedIn[I]); + dump(anticipatedIn[I]); DOUT << "\n"; DOUT << "AVAIL_OUT: "; - dump_unique(availableOut[I]); + dump(availableOut[I]); DOUT << "\n"; } @@ -985,7 +975,7 @@ bool GVNPRE::runOnFunction(Function &F) { DOUT << "Merge Block: " << BB->getName() << "\n"; DOUT << "ANTIC_IN: "; - dump_unique(anticIn); + dump(anticIn); DOUT << "\n"; for (unsigned i = 0; i < workList.size(); ++i) { |