Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:GEP

77       if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) {
78 // If the GEP has all zero indices, it doesn't offset the pointer. If it
81 std::make_pair(I, IsOffset || !GEP->hasAllZeroIndices()));
200 Instruction *GEP =
202 InsertNewInstBefore(GEP, *It);
206 return ReplaceInstUsesWith(AI, GEP);
313 // see if a trivial 'gep P, 0, 0' will help matters. Only do this for
393 // load(gep null, ...) -> unreachable
485 /// NewGEPIndices - If SrcPTy is an aggregate type, we can emit a "noop gep"
492 // see if a trivial 'gep P, 0, 0' will help matters. Only do this for
556 // emit a GEP to index into its first field.
625 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr)) {
626 if (isa<AllocaInst>(GEP->getOperand(0))) {
627 if (GEP->getOperand(0)->hasOneUse())