• Home
  • Raw
  • Download

Lines Matching refs:LI

58     if (const LoadInst *LI = dyn_cast<LoadInst>(U)) {  in isAllocaPromotable()  local
61 if (LI->isVolatile()) in isAllocaPromotable()
134 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca() local
137 UsingBlocks.push_back(LI->getParent()); in AnalyzeAlloca()
138 AllocaPointerVal = LI; in AnalyzeAlloca()
354 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca() local
361 if (LI->getParent() == StoreBB) { in rewriteSingleStoreAlloca()
368 if (unsigned(StoreIndex) > LBI.getInstructionIndex(LI)) { in rewriteSingleStoreAlloca()
374 } else if (LI->getParent() != StoreBB && in rewriteSingleStoreAlloca()
375 !DT.dominates(StoreBB, LI->getParent())) { in rewriteSingleStoreAlloca()
379 Info.UsingBlocks.push_back(LI->getParent()); in rewriteSingleStoreAlloca()
388 if (ReplVal == LI) in rewriteSingleStoreAlloca()
389 ReplVal = UndefValue::get(LI->getType()); in rewriteSingleStoreAlloca()
390 LI->replaceAllUsesWith(ReplVal); in rewriteSingleStoreAlloca()
391 if (AST && LI->getType()->isPointerTy()) in rewriteSingleStoreAlloca()
392 AST->deleteValue(LI); in rewriteSingleStoreAlloca()
393 LI->eraseFromParent(); in rewriteSingleStoreAlloca()
394 LBI.deleteValue(LI); in rewriteSingleStoreAlloca()
459 LoadInst *LI = dyn_cast<LoadInst>(*UI++); in promoteSingleBlockAlloca() local
460 if (!LI) in promoteSingleBlockAlloca()
463 unsigned LoadIdx = LBI.getInstructionIndex(LI); in promoteSingleBlockAlloca()
474 LI->replaceAllUsesWith(UndefValue::get(LI->getType())); in promoteSingleBlockAlloca()
482 LI->replaceAllUsesWith(std::prev(I)->second->getOperand(0)); in promoteSingleBlockAlloca()
484 if (AST && LI->getType()->isPointerTy()) in promoteSingleBlockAlloca()
485 AST->deleteValue(LI); in promoteSingleBlockAlloca()
486 LI->eraseFromParent(); in promoteSingleBlockAlloca()
487 LBI.deleteValue(LI); in promoteSingleBlockAlloca()
809 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in ComputeLiveInBlocks() local
810 if (LI->getOperand(0) != AI) in ComputeLiveInBlocks()
929 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass() local
930 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand()); in RenamePass()
941 LI->replaceAllUsesWith(V); in RenamePass()
942 if (AST && LI->getType()->isPointerTy()) in RenamePass()
943 AST->deleteValue(LI); in RenamePass()
944 BB->getInstList().erase(LI); in RenamePass()