Lines Matching refs:getInitializer
439 Constant *Init = GV->getInitializer(); in SRAGlobal()
1528 if (GV->getInitializer()->getType()->isPointerTy() && in optimizeOnceStoredGlobal()
1529 GV->getInitializer()->isNullValue()) { in optimizeOnceStoredGlobal()
1531 if (GV->getInitializer()->getType() != SOVC->getType()) in optimizeOnceStoredGlobal()
1532 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in optimizeOnceStoredGlobal()
1584 Constant *InitVal = GV->getInitializer(); in TryToShrinkGlobalToBoolean()
1838 if (!isa<UndefValue>(GV->getInitializer())) in processInternalGlobal()
1839 new StoreInst(GV->getInitializer(), Alloca, &FirstI); in processInternalGlobal()
1861 Changed = CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in processInternalGlobal()
1878 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in processInternalGlobal()
1892 if (!GV->getInitializer()->getType()->isSingleValueType()) { in processInternalGlobal()
1903 if (isa<UndefValue>(GV->getInitializer())) { in processInternalGlobal()
1908 CleanupConstantGlobalUsers(GV, GV->getInitializer(), DL, TLI); in processInternalGlobal()
2080 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(GV->getInitializer())) { in OptimizeGlobalVars()
2157 GV->setInitializer(EvaluateStoreInto(GV->getInitializer(), Val, CE, 2)); in CommitValueTo()