mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Reduce indentation and remove commented out code.
llvm-svn: 123729
This commit is contained in:
parent
62a9d4d454
commit
1cab858a5c
@ -1704,29 +1704,8 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!AnalyzeGlobal(GV, GS, PHIUsers)) {
|
||||
#if 0
|
||||
DEBUG(dbgs() << "Global: " << *GV);
|
||||
DEBUG(dbgs() << " isLoaded = " << GS.isLoaded << "\n");
|
||||
DEBUG(dbgs() << " StoredType = ");
|
||||
switch (GS.StoredType) {
|
||||
case GlobalStatus::NotStored: DEBUG(dbgs() << "NEVER STORED\n"); break;
|
||||
case GlobalStatus::isInitializerStored: DEBUG(dbgs() << "INIT STORED\n");
|
||||
break;
|
||||
case GlobalStatus::isStoredOnce: DEBUG(dbgs() << "STORED ONCE\n"); break;
|
||||
case GlobalStatus::isStored: DEBUG(dbgs() << "stored\n"); break;
|
||||
}
|
||||
if (GS.StoredType == GlobalStatus::isStoredOnce && GS.StoredOnceValue)
|
||||
DEBUG(dbgs() << " StoredOnceValue = " << *GS.StoredOnceValue << "\n");
|
||||
if (GS.AccessingFunction && !GS.HasMultipleAccessingFunctions)
|
||||
DEBUG(dbgs() << " AccessingFunction = "
|
||||
<< GS.AccessingFunction->getName() << "\n");
|
||||
DEBUG(dbgs() << " HasMultipleAccessingFunctions = "
|
||||
<< GS.HasMultipleAccessingFunctions << "\n");
|
||||
DEBUG(dbgs() << " HasNonInstructionUser = "
|
||||
<< GS.HasNonInstructionUser<<"\n");
|
||||
DEBUG(dbgs() << "\n");
|
||||
#endif
|
||||
if (AnalyzeGlobal(GV, GS, PHIUsers))
|
||||
return false;
|
||||
|
||||
// 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 can make
|
||||
@ -1837,7 +1816,7 @@ bool GlobalOpt::ProcessInternalGlobal(GlobalVariable *GV,
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user