Lines Matching refs:Leader
304 CongruenceClass(unsigned ID, Value *Leader, const Expression *E) in CongruenceClass() argument
305 : ID(ID), RepLeader(Leader), DefiningExpr(E) {} in CongruenceClass()
319 void setLeader(Value *Leader) { RepLeader = Leader; } in setLeader() argument
330 void setStoredValue(Value *Leader) { RepStoredValue = Leader; } in setStoredValue() argument
332 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()
3560 auto Leader = lookupOperandLeader(SI->getValueOperand()); in convertClassToDFSOrdered() local
3561 if (alwaysAvailable(Leader)) { in convertClassToDFSOrdered()
3562 VDDef.Def.setPointer(Leader); in convertClassToDFSOrdered()
3884 Value *Leader = in eliminateInstructions() local
3886 if (alwaysAvailable(Leader)) { in eliminateInstructions()
3891 if (Member == Leader || !isa<Instruction>(Member) || in eliminateInstructions()
3896 LLVM_DEBUG(dbgs() << "Found replacement " << *(Leader) << " for " in eliminateInstructions()
3899 assert(Leader != I && "About to accidentally remove our leader"); in eliminateInstructions()
3900 replaceInstruction(I, Leader); in eliminateInstructions()
3906 if (CC->size() != 1 || RealToTemp.count(Leader)) { in eliminateInstructions()
4103 Instruction *Leader = cast<Instruction>(EliminationStack.back()); in eliminateInstructions() local
4104 (void)Leader; in eliminateInstructions()
4105 assert(DT->dominates(Leader->getParent(), Member->getParent())); in eliminateInstructions()
4108 << " that is dominated by " << *Leader << "\n"); in eliminateInstructions()