Lines Matching defs:LI
110 if (const LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
111 if (LI->isUnordered()) {
112 Loc = MemoryLocation::get(LI);
115 if (LI->getOrdering() == AtomicOrdering::Monotonic) {
116 Loc = MemoryLocation::get(LI);
246 if (auto *LI = dyn_cast<LoadInst>(QueryInst)) {
247 InvariantGroupDependency = getInvariantGroupPointerDependency(LI, BB);
277 MemoryDependenceResults::getInvariantGroupPointerDependency(LoadInst *LI,
280 if (!LI->hasMetadata(LLVMContext::MD_invariant_group))
285 Value *LoadOperand = LI->getPointerOperand()->stripPointerCasts();
317 if (!U || U == LI || !DT.dominates(U, LI))
357 LI, NonLocalDepResult(ClosestDependency->getParent(),
359 ReverseNonLocalDefsCache[ClosestDependency].insert(LI);
382 auto *LI = dyn_cast<LoadInst>(SI->getValueOperand());
383 if (!LI || LI->getParent() != SI->getParent())
385 if (BatchAA.alias(MemoryLocation::get(LI), MemLoc) != AliasResult::MustAlias)
388 for (const Instruction *I = LI; I != SI; I = I->getNextNonDebugInstruction())
441 if (LoadInst *LI = dyn_cast<LoadInst>(QueryInst)) {
442 if (LI->hasMetadata(LLVMContext::MD_invariant_load))
444 MemLocAlign = LI->getAlign();
453 if (auto *LI = dyn_cast<LoadInst>(I))
454 return isStrongerThan(LI->getOrdering(), AO);
511 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
515 if (LI->isVolatile()) {
518 return MemDepResult::getClobber(LI);
521 return MemDepResult::getClobber(LI);
529 if (LI->isAtomic() && isStrongerThanUnordered(LI->getOrdering())) {
532 return MemDepResult::getClobber(LI);
533 if (LI->getOrdering() != AtomicOrdering::Monotonic)
534 return MemDepResult::getClobber(LI);
537 MemoryLocation LoadLoc = MemoryLocation::get(LI);
553 ClobberOffsets[LI] = R.getOffset();
901 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
902 return !LI->isUnordered();
941 if (LoadInst *LI = dyn_cast_or_null<LoadInst>(QueryInst))
942 isInvariantLoad = LI->getMetadata(LLVMContext::MD_invariant_load);
1084 if (LoadInst *LI = dyn_cast_or_null<LoadInst>(QueryInst))
1085 isInvariantLoad = LI->getMetadata(LLVMContext::MD_invariant_load);