Lines Matching refs:GA
2202 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) { in hasUseOtherThanLLVMUsed() argument
2203 if (GA.use_empty()) // No use at all. in hasUseOtherThanLLVMUsed()
2206 assert((!U.usedCount(&GA) || !U.compilerUsedCount(&GA)) && in hasUseOtherThanLLVMUsed()
2209 if (!GA.hasOneUse()) in hasUseOtherThanLLVMUsed()
2215 return !U.usedCount(&GA) && !U.compilerUsedCount(&GA); in hasUseOtherThanLLVMUsed()
2225 static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U, in hasUsesToReplace() argument
2227 if (GA.isWeakForLinker()) in hasUsesToReplace()
2232 if (hasUseOtherThanLLVMUsed(GA, U)) in hasUsesToReplace()
2236 if (!mayHaveOtherReferences(GA, U)) in hasUsesToReplace()
2246 Constant *Aliasee = GA.getAliasee(); in hasUsesToReplace()
2508 for (GlobalAlias &GA : M.aliases()) in optimizeGlobalsInModule()
2509 if (const Comdat *C = GA.getComdat()) in optimizeGlobalsInModule()
2510 if (!GA.isDiscardableIfUnused() || !GA.use_empty()) in optimizeGlobalsInModule()