Lines Matching refs:Leader
303 CongruenceClass(unsigned ID, Value *Leader, const Expression *E) in CongruenceClass() argument
304 : ID(ID), RepLeader(Leader), DefiningExpr(E) {} in CongruenceClass()
318 void setLeader(Value *Leader) { RepLeader = Leader; } in setLeader() argument
329 void setStoredValue(Value *Leader) { RepStoredValue = Leader; } in setStoredValue() argument
331 void setMemoryLeader(const MemoryAccess *Leader) { RepMemoryAccess = Leader; } in setMemoryLeader() argument
736 CongruenceClass *createCongruenceClass(Value *Leader, const Expression *E) { in createCongruenceClass() argument
737 auto *result = new CongruenceClass(NextCongruenceNum++, Leader, E); in createCongruenceClass()
3592 auto Leader = lookupOperandLeader(SI->getValueOperand()); in convertClassToDFSOrdered() local
3593 if (alwaysAvailable(Leader)) { in convertClassToDFSOrdered()
3594 VDDef.Def.setPointer(Leader); in convertClassToDFSOrdered()
3916 Value *Leader = in eliminateInstructions() local
3918 if (alwaysAvailable(Leader)) { in eliminateInstructions()
3923 if (Member == Leader || !isa<Instruction>(Member) || in eliminateInstructions()
3928 LLVM_DEBUG(dbgs() << "Found replacement " << *(Leader) << " for " in eliminateInstructions()
3931 assert(Leader != I && "About to accidentally remove our leader"); in eliminateInstructions()
3932 replaceInstruction(I, Leader); in eliminateInstructions()
3938 if (CC->size() != 1 || RealToTemp.count(Leader)) { in eliminateInstructions()
4135 Instruction *Leader = cast<Instruction>(EliminationStack.back()); in eliminateInstructions() local
4136 (void)Leader; in eliminateInstructions()
4137 assert(DT->dominates(Leader->getParent(), Member->getParent())); in eliminateInstructions()
4140 << " that is dominated by " << *Leader << "\n"); in eliminateInstructions()