Lines Matching defs:StoreMI
316 for (auto *StoreMI : StoresToMerge)
317 assert(MRI->getType(StoreMI->getValueReg()) == OrigTy);
512 bool LoadStoreOpt::addStoreToCandidate(GStore &StoreMI,
516 LLT ValueTy = MRI->getType(StoreMI.getValueReg());
517 LLT PtrTy = MRI->getType(StoreMI.getPointerReg());
524 if (StoreMI.getMemSizeInBits() != ValueTy.getSizeInBits())
530 if (!StoreMI.isSimple())
533 Register StoreAddr = StoreMI.getPointerReg();
549 C.Stores.emplace_back(&StoreMI);
551 << StoreMI);
577 C.Stores.emplace_back(&StoreMI);
579 LLVM_DEBUG(dbgs() << "Candidate added store: " << StoreMI);
591 if (auto *StoreMI = dyn_cast<GStore>(&MI)) {
594 if (!addStoreToCandidate(*StoreMI, Candidate)) {
597 if (operationAliasesWithCandidate(*StoreMI, Candidate)) {
601 Candidate.addPotentialAlias(*StoreMI);
711 bool LoadStoreOpt::mergeTruncStore(GStore &StoreMI,
713 LLT MemTy = StoreMI.getMMO().getMemoryType();
726 if (!StoreMI.isSimple())
739 auto &LastStore = StoreMI;
877 Builder.setInstrAndDebugLoc(StoreMI);
911 if (auto *StoreMI = dyn_cast<GStore>(&MI))
912 Stores.emplace_back(StoreMI);
914 for (auto *StoreMI : Stores) {
915 if (DeletedStores.count(StoreMI))
917 if (mergeTruncStore(*StoreMI, DeletedStores))