Lines Matching refs:NewGV
863 GlobalVariable *NewGV = new GlobalVariable(*GV->getParent(), in OptimizeGlobalAddressOfMalloc() local
878 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfMalloc()
879 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfMalloc()
882 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfMalloc()
886 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
891 Constant *RepValue = NewGV; in OptimizeGlobalAddressOfMalloc()
892 if (NewGV->getType() != GV->getType()->getElementType()) in OptimizeGlobalAddressOfMalloc()
965 ConstantPropUsersOf(NewGV); in OptimizeGlobalAddressOfMalloc()
966 if (RepValue != NewGV) in OptimizeGlobalAddressOfMalloc()
969 return NewGV; in OptimizeGlobalAddressOfMalloc()
1637 GlobalVariable *NewGV = new GlobalVariable(Type::getInt1Ty(GV->getContext()), in TryToShrinkGlobalToBoolean() local
1643 GV->getParent()->getGlobalList().insert(GV, NewGV); in TryToShrinkGlobalToBoolean()
1677 StoreVal = new LoadInst(NewGV, LI->getName()+".b", LI); in TryToShrinkGlobalToBoolean()
1685 new StoreInst(StoreVal, NewGV, SI); in TryToShrinkGlobalToBoolean()
1689 LoadInst *NLI = new LoadInst(NewGV, LI->getName()+".b", LI); in TryToShrinkGlobalToBoolean()