Lines Matching refs:GA
2190 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) { in hasUseOtherThanLLVMUsed() argument
2191 if (GA.use_empty()) // No use at all. in hasUseOtherThanLLVMUsed()
2194 assert((!U.usedCount(&GA) || !U.compilerUsedCount(&GA)) && in hasUseOtherThanLLVMUsed()
2197 if (!GA.hasOneUse()) in hasUseOtherThanLLVMUsed()
2203 return !U.usedCount(&GA) && !U.compilerUsedCount(&GA); in hasUseOtherThanLLVMUsed()
2213 static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U, in hasUsesToReplace() argument
2215 if (GA.isWeakForLinker()) in hasUsesToReplace()
2220 if (hasUseOtherThanLLVMUsed(GA, U)) in hasUsesToReplace()
2224 if (!mayHaveOtherReferences(GA, U)) in hasUsesToReplace()
2234 Constant *Aliasee = GA.getAliasee(); in hasUsesToReplace()
2435 for (GlobalAlias &GA : M.aliases()) in optimizeGlobalsInModule()
2436 if (const Comdat *C = GA.getComdat()) in optimizeGlobalsInModule()
2437 if (!GA.isDiscardableIfUnused() || !GA.use_empty()) in optimizeGlobalsInModule()