Lines Matching defs:GEP
36 GetElementPtrInst *GEP =
38 if (!GEP || !GEP->hasOneUse() ||
39 GV.getValueType() != GEP->getSourceElementType())
42 LoadInst *Load = dyn_cast<LoadInst>(GEP->use_begin()->getUser());
44 Load->getType() != GEP->getResultElementType())
131 GetElementPtrInst *GEP =
133 LoadInst *Load = cast<LoadInst>(GEP->use_begin()->getUser());
136 BasicBlock *BB = GEP->getParent();
143 // Place new instruction sequence before GEP.
144 Builder.SetInsertPoint(GEP);
145 Value *Index = GEP->getOperand(2);
151 // GEP might not be immediately followed by a LOAD, like it can be hoisted
164 // Remove Load and GEP instructions.
166 GEP->eraseFromParent();