Lines Matching refs:getInitializer
480 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()
1888 if (!isa<UndefValue>(GV->getInitializer())) in ProcessInternalGlobal()
1889 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in ProcessInternalGlobal()
1911 Changed = CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
1927 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
1939 } else if (!GV->getInitializer()->getType()->isSingleValueType()) { in ProcessInternalGlobal()
1951 if (isa<UndefValue>(GV->getInitializer())) { in ProcessInternalGlobal()
1956 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in ProcessInternalGlobal()
2087 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(GV->getInitializer())) { in OptimizeGlobalVars()
2220 return ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE); in isSimpleEnoughPointerToCommit()
2296 GV->setInitializer(EvaluateStoreInto(GV->getInitializer(), Val, CE, 2)); in CommitValueTo()
2398 return GV->getInitializer(); in ComputeLoadResult()
2408 return ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(), CE); in ComputeLoadResult()