Home | History | Annotate | Download | only in Utils

Lines Matching refs:LI

90     if (const LoadInst *LI = dyn_cast<LoadInst>(U)) {
93 if (LI->isVolatile())
337 LoadInst *LI = cast<LoadInst>(User);
340 UsingBlocks.push_back(LI->getParent());
341 AllocaPointerVal = LI;
714 if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
715 if (LI->getOperand(0) != AI) continue;
859 LoadInst *LI = cast<LoadInst>(UserInst);
866 if (LI->getParent() == StoreBB) {
873 if (unsigned(StoreIndex) > LBI.getInstructionIndex(LI)) {
879 } else if (LI->getParent() != StoreBB &&
880 !dominates(StoreBB, LI->getParent())) {
884 Info.UsingBlocks.push_back(LI->getParent());
893 if (ReplVal == LI)
894 ReplVal = UndefValue::get(LI->getType());
895 LI->replaceAllUsesWith(ReplVal);
896 if (AST && LI->getType()->isPointerTy())
897 AST->deleteValue(LI);
898 LI->eraseFromParent();
899 LBI.deleteValue(LI);
952 if (LoadInst *LI = dyn_cast<LoadInst>(*UI++)) {
953 LI->replaceAllUsesWith(UndefValue::get(LI->getType()));
954 if (AST && LI->getType()->isPointerTy())
955 AST->deleteValue(LI);
956 LBI.deleteValue(LI);
957 LI->eraseFromParent();
969 LoadInst *LI = dyn_cast<LoadInst>(*UI++);
970 if (!LI) continue;
972 unsigned LoadIdx = LBI.getInstructionIndex(LI);
983 Info.UsingBlocks.push_back(LI->getParent());
989 LI->replaceAllUsesWith(I->second->getOperand(0));
990 if (AST && LI->getType()->isPointerTy())
991 AST->deleteValue(LI);
992 LI->eraseFromParent();
993 LBI.deleteValue(LI);
1079 if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
1080 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand());
1089 LI->replaceAllUsesWith(V);
1090 if (AST && LI->getType()->isPointerTy())
1091 AST->deleteValue(LI);
1092 BB->getInstList().erase(LI);