Searched refs:ConstIdx (Results 1 – 3 of 3) sorted by relevance
421 const ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in getGEPCost() local422 if (!ConstIdx) in getGEPCost()424 ConstIdx = dyn_cast<ConstantInt>(Splat); in getGEPCost()427 if (ConstIdx) in getGEPCost()428 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in getGEPCost()439 assert(ConstIdx && "Unexpected GEP index"); in getGEPCost()440 uint64_t Field = ConstIdx->getZExtValue(); in getGEPCost()
255 if (ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I)) { in isGEPFoldable() local256 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable()298 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in hasOnlyOneNonZeroIndex() local299 if (ConstIdx == nullptr || !ConstIdx->isZero()) in hasOnlyOneNonZeroIndex()
320 if (ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I)) { in isGEPFoldable() local321 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable()