Lines Matching refs:GEP
352 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V)) { in isSafeToPromoteArgument() local
353 V = GEP->getPointerOperand(); in isSafeToPromoteArgument()
356 Indices.reserve(GEP->getNumIndices()); in isSafeToPromoteArgument()
357 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in isSafeToPromoteArgument()
389 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) { in isSafeToPromoteArgument() local
390 if (GEP->use_empty()) { in isSafeToPromoteArgument()
393 getAnalysis<AliasAnalysis>().deleteValue(GEP); in isSafeToPromoteArgument()
394 GEP->eraseFromParent(); in isSafeToPromoteArgument()
402 for (User::op_iterator i = GEP->idx_begin(), e = GEP->idx_end(); in isSafeToPromoteArgument()
410 for (Value::use_iterator UI = GEP->use_begin(), E = GEP->use_end(); in isSafeToPromoteArgument()
839 GetElementPtrInst *GEP = cast<GetElementPtrInst>(I->use_back()); in DoPromotion() local
841 Operands.reserve(GEP->getNumIndices()); in DoPromotion()
842 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end(); in DoPromotion()
868 while (!GEP->use_empty()) { in DoPromotion()
869 LoadInst *L = cast<LoadInst>(GEP->use_back()); in DoPromotion()
874 AA.deleteValue(GEP); in DoPromotion()
875 GEP->eraseFromParent(); in DoPromotion()