Lines Matching defs:StoreMI
317 for (auto *StoreMI : StoresToMerge)
318 assert(MRI->getType(StoreMI->getValueReg()) == OrigTy);
514 bool LoadStoreOpt::addStoreToCandidate(GStore &StoreMI,
518 LLT ValueTy = MRI->getType(StoreMI.getValueReg());
519 LLT PtrTy = MRI->getType(StoreMI.getPointerReg());
526 if (StoreMI.getMemSizeInBits() != ValueTy.getSizeInBits())
532 if (!StoreMI.isSimple())
535 Register StoreAddr = StoreMI.getPointerReg();
551 C.Stores.emplace_back(&StoreMI);
553 << StoreMI);
579 C.Stores.emplace_back(&StoreMI);
581 LLVM_DEBUG(dbgs() << "Candidate added store: " << StoreMI);
593 if (auto *StoreMI = dyn_cast<GStore>(&MI)) {
596 if (!addStoreToCandidate(*StoreMI, Candidate)) {
599 if (operationAliasesWithCandidate(*StoreMI, Candidate)) {
603 Candidate.addPotentialAlias(*StoreMI);
713 bool LoadStoreOpt::mergeTruncStore(GStore &StoreMI,
715 LLT MemTy = StoreMI.getMMO().getMemoryType();
728 if (!StoreMI.isSimple())
741 auto &LastStore = StoreMI;
879 Builder.setInstrAndDebugLoc(StoreMI);
913 if (auto *StoreMI = dyn_cast<GStore>(&MI))
914 Stores.emplace_back(StoreMI);
916 for (auto *StoreMI : Stores) {
917 if (DeletedStores.count(StoreMI))
919 if (mergeTruncStore(*StoreMI, DeletedStores))