Home | History | Annotate | Download | only in IPO

Lines Matching refs:GS

83                                const GlobalStatus &GS);
196 static bool AnalyzeGlobal(const Value *V, GlobalStatus &GS,
202 GS.HasNonInstructionUser = true;
208 if (AnalyzeGlobal(CE, GS, PHIUsers)) return true;
210 if (!GS.HasMultipleAccessingFunctions) {
212 if (GS.AccessingFunction == 0)
213 GS.AccessingFunction = F;
214 else if (GS.AccessingFunction != F)
215 GS.HasMultipleAccessingFunctions = true;
218 GS.isLoaded = true;
221 GS.Ordering = StrongerOrdering(GS.Ordering, LI->getOrdering());
228 GS.Ordering = StrongerOrdering(GS.Ordering, SI->getOrdering());
233 if (GS.StoredType != GlobalStatus::isStored) {
238 if (GS.StoredType < GlobalStatus::isInitializerStored)
239 GS.StoredType = GlobalStatus::isInitializerStored;
242 if (GS.StoredType < GlobalStatus::isInitializerStored)
243 GS.StoredType = GlobalStatus::isInitializerStored;
244 } else if (GS.StoredType < GlobalStatus::isStoredOnce) {
245 GS.StoredType = GlobalStatus::isStoredOnce;
246 GS.StoredOnceValue = StoredVal;
247 } else if (GS.StoredType == GlobalStatus::isStoredOnce &&
248 GS.StoredOnceValue == StoredVal) {
251 GS.StoredType = GlobalStatus::isStored;
254 GS.StoredType = GlobalStatus::isStored;
258 if (AnalyzeGlobal(I, GS, PHIUsers)) return true;
260 if (AnalyzeGlobal(I, GS, PHIUsers)) return true;
262 if (AnalyzeGlobal(I, GS, PHIUsers)) return true;
267 if (AnalyzeGlobal(I, GS, PHIUsers)) return true;
268 GS.HasPHIUser = true;
270 GS.isCompared = true;
274 GS.StoredType = GlobalStatus::isStored;
276 GS.isLoaded = true;
280 GS.StoredType = GlobalStatus::isStored;
285 GS.HasNonInstructionUser = true;
290 GS.HasNonInstructionUser = true;
1910 GlobalStatus GS;
1912 if (AnalyzeGlobal(GV, GS, PHIUsers))
1915 if (!GS.isCompared && !GV->hasUnnamedAddr()) {
1923 return ProcessInternalGlobal(GV, GVI, PHIUsers, GS);
1931 const GlobalStatus &GS) {
1941 if (!GS.HasMultipleAccessingFunctions &&
1942 GS.AccessingFunction && !GS.HasNonInstructionUser &&
1944 GS.AccessingFunction->getName() == "main" &&
1945 GS.AccessingFunction->hasExternalLinkage() &&
1948 Instruction &FirstI = const_cast<Instruction&>(*GS.AccessingFunction
1964 if (!GS.isLoaded) {
1985 } else if (GS.StoredType <= GlobalStatus::isInitializerStored) {
2008 } else if (GS.StoredType == GlobalStatus::isStoredOnce) {
2013 if (Constant *SOVConstant = dyn_cast<Constant>(GS.StoredOnceValue))
2035 if (OptimizeOnceStoredGlobal(GV, GS.StoredOnceValue, GS.Ordering, GVI,
2041 if (Constant *SOVConstant = dyn_cast<Constant>(GS.StoredOnceValue))