reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1493 if (!ValueIsOnlyUsedLocallyOrStoredToOneGlobal(CI, GV, PHIs)) 1501 Value *NElems = getMallocArraySize(CI, DL, TLI, true); 1510 OptimizeGlobalAddressOfMalloc(GV, CI, AllocTy, NElements, DL, TLI); 1523 if (NElems == ConstantInt::get(CI->getArgOperand(0)->getType(), 1)) 1534 AllGlobalLoadUsesSimpleEnoughForHeapSRA(GV, CI)) { 1538 if (ArrayType *AT = dyn_cast<ArrayType>(getMallocAllocatedType(CI, TLI))) { 1539 Type *IntPtrTy = DL.getIntPtrType(CI->getType()); 1544 CI->getOperandBundlesAsDefs(OpBundles); 1546 CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, AllocSize, NumElements, 1547 OpBundles, nullptr, CI->getName()); 1548 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); 1548 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI); 1549 CI->replaceAllUsesWith(Cast); 1550 CI->eraseFromParent(); 1552 CI = cast<CallInst>(BCI->getOperand(0)); 1554 CI = cast<CallInst>(Malloc); 1557 PerformHeapAllocSRoA(GV, CI, getMallocArraySize(CI, DL, TLI, true), DL, 1557 PerformHeapAllocSRoA(GV, CI, getMallocArraySize(CI, DL, TLI, true), DL,