mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Remove unused "NoPRE" parameter in GVN and createGVNPass().
llvm-svn: 97235
This commit is contained in:
parent
2a0ccfc916
commit
cf20a07501
@ -263,7 +263,7 @@ extern const PassInfo *const LCSSAID;
|
||||
// GVN - This pass performs global value numbering and redundant load
|
||||
// elimination cotemporaneously.
|
||||
//
|
||||
FunctionPass *createGVNPass(bool NoPRE = false, bool NoLoads = false);
|
||||
FunctionPass *createGVNPass(bool NoLoads = false);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
|
@ -227,7 +227,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
||||
// Optionally, tun split-GEPs and no-load GVN.
|
||||
if (EnableSplitGEPGVN) {
|
||||
PM.add(createGEPSplitterPass());
|
||||
PM.add(createGVNPass(/*NoPRE=*/false, /*NoLoads=*/true));
|
||||
PM.add(createGVNPass(/*NoLoads=*/true));
|
||||
}
|
||||
|
||||
// Run loop strength reduction before anything else.
|
||||
|
@ -662,11 +662,10 @@ namespace {
|
||||
bool runOnFunction(Function &F);
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
explicit GVN(bool nopre = false, bool noloads = false)
|
||||
: FunctionPass(&ID), NoPRE(nopre), NoLoads(noloads), MD(0) { }
|
||||
explicit GVN(bool noloads = false)
|
||||
: FunctionPass(&ID), NoLoads(noloads), MD(0) { }
|
||||
|
||||
private:
|
||||
bool NoPRE;
|
||||
bool NoLoads;
|
||||
MemoryDependenceAnalysis *MD;
|
||||
DominatorTree *DT;
|
||||
@ -711,8 +710,8 @@ namespace {
|
||||
}
|
||||
|
||||
// createGVNPass - The public interface to this file...
|
||||
FunctionPass *llvm::createGVNPass(bool NoPRE, bool NoLoads) {
|
||||
return new GVN(NoPRE, NoLoads);
|
||||
FunctionPass *llvm::createGVNPass(bool NoLoads) {
|
||||
return new GVN(NoLoads);
|
||||
}
|
||||
|
||||
static RegisterPass<GVN> X("gvn",
|
||||
|
Loading…
Reference in New Issue
Block a user