Remove unused "NoPRE" parameter in GVN and createGVNPass().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson 2010-02-26 18:35:19 +00:00
parent f60e9bbbad
commit 60df9077eb
3 changed files with 6 additions and 7 deletions

View File

@ -263,7 +263,7 @@ extern const PassInfo *const LCSSAID;
// GVN - This pass performs global value numbering and redundant load // GVN - This pass performs global value numbering and redundant load
// elimination cotemporaneously. // elimination cotemporaneously.
// //
FunctionPass *createGVNPass(bool NoPRE = false, bool NoLoads = false); FunctionPass *createGVNPass(bool NoLoads = false);
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// //

View File

@ -227,7 +227,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
// Optionally, tun split-GEPs and no-load GVN. // Optionally, tun split-GEPs and no-load GVN.
if (EnableSplitGEPGVN) { if (EnableSplitGEPGVN) {
PM.add(createGEPSplitterPass()); PM.add(createGEPSplitterPass());
PM.add(createGVNPass(/*NoPRE=*/false, /*NoLoads=*/true)); PM.add(createGVNPass(/*NoLoads=*/true));
} }
// Run loop strength reduction before anything else. // Run loop strength reduction before anything else.

View File

@ -662,11 +662,10 @@ namespace {
bool runOnFunction(Function &F); bool runOnFunction(Function &F);
public: public:
static char ID; // Pass identification, replacement for typeid static char ID; // Pass identification, replacement for typeid
explicit GVN(bool nopre = false, bool noloads = false) explicit GVN(bool noloads = false)
: FunctionPass(&ID), NoPRE(nopre), NoLoads(noloads), MD(0) { } : FunctionPass(&ID), NoLoads(noloads), MD(0) { }
private: private:
bool NoPRE;
bool NoLoads; bool NoLoads;
MemoryDependenceAnalysis *MD; MemoryDependenceAnalysis *MD;
DominatorTree *DT; DominatorTree *DT;
@ -711,8 +710,8 @@ namespace {
} }
// createGVNPass - The public interface to this file... // createGVNPass - The public interface to this file...
FunctionPass *llvm::createGVNPass(bool NoPRE, bool NoLoads) { FunctionPass *llvm::createGVNPass(bool NoLoads) {
return new GVN(NoPRE, NoLoads); return new GVN(NoLoads);
} }
static RegisterPass<GVN> X("gvn", static RegisterPass<GVN> X("gvn",