Lines Matching defs:GEP
136 // This is true if all GEP bases are allocas and if all indices into them are
149 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i));
150 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
151 GEP->getNumOperands() != FirstInst->getNumOperands())
154 AllInBounds &= GEP->isInBounds();
158 (!isa<AllocaInst>(GEP->getOperand(0)) ||
159 !GEP->hasAllConstantIndices()))
164 if (FirstInst->getOperand(op) == GEP->getOperand(op))
173 isa<ConstantInt>(GEP->getOperand(op)))
176 if (FirstInst->getOperand(op)->getType() !=GEP->getOperand(op)->getType())
195 // load up into the predecessors so that we have a load of a gep of an alloca,
273 // If this load is a load from a GEP with a constant offset from an alloca,
278 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(L->getOperand(0)))
279 if (AllocaInst *AI = dyn_cast<AllocaInst>(GEP->getOperand(0)))
280 if (AI->isStaticAlloca() && GEP->hasAllConstantIndices())