Lines Matching defs:LoadI

1112   if (LoadInst *LoadI = dyn_cast<LoadInst>(SimplifyValue))
1113 if (simplifyPartiallyRedundantLoad(LoadI))
1219 /// simplifyPartiallyRedundantLoad - If LoadI is an obviously partially
1223 bool JumpThreadingPass::simplifyPartiallyRedundantLoad(LoadInst *LoadI) {
1225 if (!LoadI->isUnordered()) return false;
1229 BasicBlock *LoadBB = LoadI->getParent();
1239 Value *LoadedPtr = LoadI->getOperand(0);
1248 BasicBlock::iterator BBIt(LoadI);
1254 LoadI, LoadBB, BBIt, DefMaxInstsToScan, &BatchAA, &IsLoadCSE)) {
1260 combineMetadataForCSE(NLoadI, LoadI, false);
1266 if (AvailableVal == LoadI)
1267 AvailableVal = PoisonValue::get(LoadI->getType());
1268 if (AvailableVal->getType() != LoadI->getType()) {
1270 AvailableVal, LoadI->getType(), "", LoadI->getIterator());
1271 cast<Instruction>(AvailableVal)->setDebugLoc(LoadI->getDebugLoc());
1273 LoadI->replaceAllUsesWith(AvailableVal);
1274 LoadI->eraseFromParent();
1286 AAMDNodes AATags = LoadI->getAAMetadata();
1308 assert(LoadI->isUnordered() &&
1312 Type *AccessTy = LoadI->getType();
1313 const auto &DL = LoadI->getDataLayout();
1318 Loc, AccessTy, LoadI->isAtomic(), PredBB, BBIt, DefMaxInstsToScan,
1330 Loc, AccessTy, LoadI->isAtomic(), SinglePredBB, BBIt,
1362 // instructions before LoadI are guaranteed to pass execution to its
1363 // successor, or if LoadI is safe to speculate.
1369 !isSafeToSpeculativelyExecute(LoadI))
1370 for (auto I = LoadBB->begin(); &*I != LoadI; ++I)
1410 LoadI->getType(), LoadedPtr->DoPHITranslation(LoadBB, UnavailablePred),
1411 LoadI->getName() + ".pr", false, LoadI->getAlign(),
1412 LoadI->getOrdering(), LoadI->getSyncScopeID(),
1414 NewVal->setDebugLoc(LoadI->getDebugLoc());
1426 PHINode *PN = PHINode::Create(LoadI->getType(), pred_size(LoadBB), "");
1428 PN->takeName(LoadI);
1429 PN->setDebugLoc(LoadI->getDebugLoc());
1445 if (PredV->getType() != LoadI->getType())
1447 PredV, LoadI->getType(), "", P->getTerminator()->getIterator());
1453 combineMetadataForCSE(PredLoadI, LoadI, true);
1457 LoadI->replaceAllUsesWith(PN);
1458 LoadI->eraseFromParent();