Searched refs:AllocSTy (Results 1 – 2 of 2) sorted by relevance
1477 StructType *AllocSTy = dyn_cast<StructType>(AllocTy); in tryToOptimizeStoreOfMallocToGlobal() local1478 if (!AllocSTy) in tryToOptimizeStoreOfMallocToGlobal()1483 if (AllocSTy->getNumElements() <= 16 && AllocSTy->getNumElements() != 0 && in tryToOptimizeStoreOfMallocToGlobal()1490 unsigned TypeSize = DL.getStructLayout(AllocSTy)->getSizeInBytes(); in tryToOptimizeStoreOfMallocToGlobal()1496 CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, AllocSize, NumElements, in tryToOptimizeStoreOfMallocToGlobal()
1540 StructType *AllocSTy = dyn_cast<StructType>(AllocTy); in TryToOptimizeStoreOfMallocToGlobal() local1541 if (!AllocSTy) in TryToOptimizeStoreOfMallocToGlobal()1546 if (AllocSTy->getNumElements() <= 16 && AllocSTy->getNumElements() != 0 && in TryToOptimizeStoreOfMallocToGlobal()1553 unsigned TypeSize = TD->getStructLayout(AllocSTy)->getSizeInBytes(); in TryToOptimizeStoreOfMallocToGlobal()1556 Instruction *Malloc = CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, in TryToOptimizeStoreOfMallocToGlobal()