forked from OSchip/llvm-project
parent
8c0f5067cc
commit
d21ac19bda
|
@ -80,7 +80,6 @@ namespace {
|
|||
bool OptimizeGlobalCtorsList(GlobalVariable *&GCL);
|
||||
bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI);
|
||||
bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI,
|
||||
const SmallPtrSet<const PHINode*, 16> &PHIUsers,
|
||||
const GlobalStatus &GS);
|
||||
bool OptimizeEmptyGlobalCXXDtors(Function *CXAAtExitFn);
|
||||
|
||||
|
@ -1931,14 +1930,13 @@ bool GlobalOpt::ProcessGlobal(GlobalVariable *GV,
|
|||
if (GV->isConstant() || !GV->hasInitializer())
|
||||
return false;
|
||||
|
||||
return ProcessInternalGlobal(GV, GVI, PHIUsers, GS);
|
||||
return ProcessInternalGlobal(GV, GVI, GS);
|
||||
}
|
||||
|
||||
/// ProcessInternalGlobal - Analyze the specified global variable and optimize
|
||||
/// it if possible. If we make a change, return true.
|
||||
bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV,
|
||||
Module::global_iterator &GVI,
|
||||
const SmallPtrSet<const PHINode*, 16> &PHIUsers,
|
||||
const GlobalStatus &GS) {
|
||||
// If this is a first class global and has only one accessing function
|
||||
// and this function is main (which we know is not recursive), we replace
|
||||
|
|
Loading…
Reference in New Issue