Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:GEP

137   // This is true if all GEP bases are allocas and if all indices into them are
150 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i));
151 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
152 GEP->getNumOperands() != FirstInst->getNumOperands())
155 AllInBounds &= GEP->isInBounds();
159 (!isa<AllocaInst>(GEP->getOperand(0)) ||
160 !GEP->hasAllConstantIndices()))
165 if (FirstInst->getOperand(op) == GEP->getOperand(op))
174 isa<ConstantInt>(GEP->getOperand(op)))
177 if (FirstInst->getOperand(op)->getType() !=GEP->getOperand(op)->getType())
196 // load up into the predecessors so that we have a load of a gep of an alloca,
274 // If this load is a load from a GEP with a constant offset from an alloca,
279 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(L->getOperand(0)))
280 if (AllocaInst *AI = dyn_cast<AllocaInst>(GEP->getOperand(0)))
281 if (AI->isStaticAlloca() && GEP->hasAllConstantIndices())