Lines Matching refs:Repl

491   void makeGepsAvailable(Instruction *Repl, BasicBlock *HoistPt,
495 void updateAlignment(Instruction *I, Instruction *Repl);
499 unsigned rauw(const SmallVecInsn &Candidates, Instruction *Repl,
506 unsigned removeAndReplace(const SmallVecInsn &Candidates, Instruction *Repl,
512 bool makeGepOperandsAvailable(Instruction *Repl, BasicBlock *HoistPt,
950 void GVNHoist::makeGepsAvailable(Instruction *Repl, BasicBlock *HoistPt, in makeGepsAvailable() argument
988 Repl->replaceUsesOfWith(Gep, ClonedGep); in makeGepsAvailable()
991 void GVNHoist::updateAlignment(Instruction *I, Instruction *Repl) { in updateAlignment() argument
992 if (auto *ReplacementLoad = dyn_cast<LoadInst>(Repl)) { in updateAlignment()
996 } else if (auto *ReplacementStore = dyn_cast<StoreInst>(Repl)) { in updateAlignment()
1000 } else if (auto *ReplacementAlloca = dyn_cast<AllocaInst>(Repl)) { in updateAlignment()
1003 } else if (isa<CallInst>(Repl)) { in updateAlignment()
1008 unsigned GVNHoist::rauw(const SmallVecInsn &Candidates, Instruction *Repl, in rauw() argument
1012 if (I != Repl) { in rauw()
1014 updateAlignment(I, Repl); in rauw()
1022 Repl->andIRFlags(I); in rauw()
1023 combineKnownMetadata(Repl, I); in rauw()
1024 I->replaceAllUsesWith(Repl); in rauw()
1049 Instruction *Repl, BasicBlock *DestBB, in removeAndReplace() argument
1051 MemoryUseOrDef *NewMemAcc = MSSA->getMemoryAccess(Repl); in removeAndReplace()
1059 unsigned NR = rauw(Candidates, Repl, NewMemAcc); in removeAndReplace()
1068 Instruction *Repl, BasicBlock *HoistPt, in makeGepOperandsAvailable() argument
1073 if (auto *Ld = dyn_cast<LoadInst>(Repl)) { in makeGepOperandsAvailable()
1075 } else if (auto *St = dyn_cast<StoreInst>(Repl)) { in makeGepOperandsAvailable()
1093 makeGepsAvailable(Repl, HoistPt, InstructionsToHoist, Gep); in makeGepOperandsAvailable()
1096 makeGepsAvailable(Repl, HoistPt, InstructionsToHoist, Val); in makeGepOperandsAvailable()
1108 Instruction *Repl = nullptr; in hoist() local
1114 if (!Repl || firstInBB(I, Repl)) in hoist()
1115 Repl = I; in hoist()
1120 if (Repl) { in hoist()
1122 assert(allOperandsAvailable(Repl, DestBB) && in hoist()
1128 Repl = InstructionsToHoist.front(); in hoist()
1133 if (!allOperandsAvailable(Repl, DestBB)) { in hoist()
1140 if (!makeGepOperandsAvailable(Repl, DestBB, InstructionsToHoist)) in hoist()
1146 MD->removeInstruction(Repl); in hoist()
1147 Repl->moveBefore(Last); in hoist()
1149 DFSNumber[Repl] = DFSNumber[Last]++; in hoist()
1153 Repl->dropLocation(); in hoist()
1154 NR += removeAndReplace(InstructionsToHoist, Repl, DestBB, MoveAccess); in hoist()
1156 if (isa<LoadInst>(Repl)) in hoist()
1158 else if (isa<StoreInst>(Repl)) in hoist()
1160 else if (isa<CallInst>(Repl)) in hoist()