Lines Matching refs:getInitializer

478   Constant *Init = GV->getInitializer();  in SRAGlobal()
1571 if (GV->getInitializer()->getType()->isPointerTy() && in OptimizeOnceStoredGlobal()
1572 GV->getInitializer()->isNullValue()) { in OptimizeOnceStoredGlobal()
1574 if (GV->getInitializer()->getType() != SOVC->getType()) in OptimizeOnceStoredGlobal()
1575 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in OptimizeOnceStoredGlobal()
1627 Constant *InitVal = GV->getInitializer(); in TryToShrinkGlobalToBoolean()
1754 if (!isa<UndefValue>(GV->getInitializer())) in ProcessInternalGlobal()
1755 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in ProcessInternalGlobal()
1775 Changed = CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
1791 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
1803 } else if (!GV->getInitializer()->getType()->isSingleValueType()) { in ProcessInternalGlobal()
1815 if (isa<UndefValue>(GV->getInitializer())) { in ProcessInternalGlobal()
1820 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
1951 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(GV->getInitializer())) { in OptimizeGlobalVars()
2086 return ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE); in isSimpleEnoughPointerToCommit()
2162 GV->setInitializer(EvaluateStoreInto(GV->getInitializer(), Val, CE, 2)); in CommitValueTo()
2266 return GV->getInitializer(); in ComputeLoadResult()
2276 return ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE); in ComputeLoadResult()