Lines Matching refs:GV
227 void TrackValueOfGlobalVariable(GlobalVariable *GV) {
229 if (GV->getType()->getElementType()->isSingleValueType()) {
230 LatticeVal &IV = TrackedGlobals[GV];
231 if (!isa<UndefValue>(GV->getInitializer()))
232 IV.markConstant(GV->getInitializer());
1025 GlobalVariable *GV = cast<GlobalVariable>(SI.getOperand(1));
1026 DenseMap<GlobalVariable*, LatticeVal>::iterator I = TrackedGlobals.find(GV);
1030 mergeInValue(I->second, GV, getValueState(SI.getOperand(0)));
1059 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Ptr)) {
1063 TrackedGlobals.find(GV);
1661 static bool AddressIsTaken(const GlobalValue *GV) {
1663 GV->removeDeadConstantUsers();
1665 for (const Use &U : GV->uses()) {
1668 if (SI->getOperand(0) == GV || SI->isVolatile())
1669 return true; // Storing addr of GV.
1928 GlobalVariable *GV = I->first;
1931 DEBUG(dbgs() << "Found that GV '" << GV->getName() << "' is constant!\n");
1932 while (!GV->use_empty()) {
1933 StoreInst *SI = cast<StoreInst>(GV->user_back());
1936 M.getGlobalList().erase(GV);