Home | History | Annotate | Download | only in Utils

Lines Matching refs:LI

90     if (const LoadInst *LI = dyn_cast<LoadInst>(U)) {
93 if (LI->isVolatile())
333 LoadInst *LI = cast<LoadInst>(User);
336 UsingBlocks.push_back(LI->getParent());
337 AllocaPointerVal = LI;
706 if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
707 if (LI->getOperand(0) != AI) continue;
851 LoadInst *LI = cast<LoadInst>(UserInst);
858 if (LI->getParent() == StoreBB) {
865 if (unsigned(StoreIndex) > LBI.getInstructionIndex(LI)) {
871 } else if (LI->getParent() != StoreBB &&
872 !dominates(StoreBB, LI->getParent())) {
876 Info.UsingBlocks.push_back(LI->getParent());
885 if (ReplVal == LI)
886 ReplVal = UndefValue::get(LI->getType());
887 LI->replaceAllUsesWith(ReplVal);
888 if (AST && LI->getType()->isPointerTy())
889 AST->deleteValue(LI);
890 LI->eraseFromParent();
891 LBI.deleteValue(LI);
944 if (LoadInst *LI = dyn_cast<LoadInst>(*UI++)) {
945 LI->replaceAllUsesWith(UndefValue::get(LI->getType()));
946 if (AST && LI->getType()->isPointerTy())
947 AST->deleteValue(LI);
948 LBI.deleteValue(LI);
949 LI->eraseFromParent();
961 LoadInst *LI = dyn_cast<LoadInst>(*UI++);
962 if (!LI) continue;
964 unsigned LoadIdx = LBI.getInstructionIndex(LI);
975 Info.UsingBlocks.push_back(LI->getParent());
981 LI->replaceAllUsesWith(I->second->getOperand(0));
982 if (AST && LI->getType()->isPointerTy())
983 AST->deleteValue(LI);
984 LI->eraseFromParent();
985 LBI.deleteValue(LI);
1071 if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
1072 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand());
1081 LI->replaceAllUsesWith(V);
1082 if (AST && LI->getType()->isPointerTy())
1083 AST->deleteValue(LI);
1084 BB->getInstList().erase(LI);