Home
last modified time | relevance | path

Searched refs:TyAllocSize (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2918 uint64_t TyAllocSize = DL.getTypeAllocSize(GEPEltType).getFixedValue(); in visitGetElementPtrInst() local
2920 if (TyAllocSize == 1) { in visitGetElementPtrInst()
2947 if ((has_single_bit(TyAllocSize) && in visitGetElementPtrInst()
2950 m_SpecificInt(countr_zero(TyAllocSize))))) || in visitGetElementPtrInst()
2952 m_IDiv(m_Value(V), m_SpecificInt(TyAllocSize)))) { in visitGetElementPtrInst()
2965 if (has_single_bit(TyAllocSize) && in visitGetElementPtrInst()
2967 C->uge(countr_zero(TyAllocSize))) in visitGetElementPtrInst()
2968 NewC = *C - countr_zero(TyAllocSize); in visitGetElementPtrInst()
2972 APInt::udivrem(*C, TyAllocSize, Quot, Rem); in visitGetElementPtrInst()
2978 APInt::sdivrem(*C, TyAllocSize, Quot, Rem); in visitGetElementPtrInst()
H A DInstCombineLoadStoreAlloca.cpp931 uint64_t TyAllocSize = DL.getTypeAllocSize(AllocTy).getFixedValue(); in canReplaceGEPIdxWithZero() local
958 return isObjectSizeLessThanOrEq(GEPI->getOperand(0), TyAllocSize, DL) && in canReplaceGEPIdxWithZero()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp5029 uint64_t TyAllocSize = Q.DL.getTypeAllocSize(Ty); in simplifyGEPInst() local
5031 if (TyAllocSize == 0 && Ptr->getType() == GEPTy) in simplifyGEPInst()
5043 if (TyAllocSize == 1 && in simplifyGEPInst()
5054 TyAllocSize == 1ULL << C && CanSimplify()) in simplifyGEPInst()
5061 m_SpecificInt(TyAllocSize))) && in simplifyGEPInst()