• Home
  • Raw
  • Download

Lines Matching refs:PHINode

26 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) {  in FoldPHIArgBinOpIntoPHI()
83 PHINode *NewLHS = nullptr, *NewRHS = nullptr; in FoldPHIArgBinOpIntoPHI()
85 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
93 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
132 Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) { in FoldPHIArgGEPIntoPHI()
203 SmallVector<PHINode*, 16> OperandPhis(FixedOperands.size()); in FoldPHIArgGEPIntoPHI()
209 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI()
227 if (PHINode *OpPhi = OperandPhis[op]) in FoldPHIArgGEPIntoPHI()
287 Instruction *InstCombiner::FoldPHIArgLoadIntoPHI(PHINode &PN) { in FoldPHIArgLoadIntoPHI()
348 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI()
391 Instruction *InstCombiner::FoldPHIArgOpIntoPHI(PHINode &PN) { in FoldPHIArgOpIntoPHI()
456 PHINode *NewPN = PHINode::Create(FirstInst->getOperand(0)->getType(), in FoldPHIArgOpIntoPHI()
508 static bool DeadPHICycle(PHINode *PN, in DeadPHICycle()
509 SmallPtrSet<PHINode*, 16> &PotentiallyDeadPHIs) { in DeadPHICycle() argument
521 if (PHINode *PU = dyn_cast<PHINode>(PN->user_back())) in DeadPHICycle()
530 static bool PHIsEqualValue(PHINode *PN, Value *NonPhiInVal, in PHIsEqualValue()
531 SmallPtrSet<PHINode*, 16> &ValueEqualPHIs) { in PHIsEqualValue() argument
544 if (PHINode *OpPN = dyn_cast<PHINode>(Op)) { in PHIsEqualValue()
575 PHINode *PN; // The PHI that was lowered.
579 LoweredPHIRecord(PHINode *pn, unsigned Sh, Type *Ty) in LoweredPHIRecord()
583 LoweredPHIRecord(PHINode *pn, unsigned Sh) in LoweredPHIRecord()
598 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>3) ^ in getHashValue()
618 Instruction *InstCombiner::SliceUpIllegalIntegerPHI(PHINode &FirstPhi) { in SliceUpIllegalIntegerPHI()
627 SmallVector<PHINode*, 8> PHIsToSlice; in SliceUpIllegalIntegerPHI()
628 SmallPtrSet<PHINode*, 8> PHIsInspected; in SliceUpIllegalIntegerPHI()
634 PHINode *PN = PHIsToSlice[PHIId]; in SliceUpIllegalIntegerPHI()
656 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI()
698 DenseMap<LoweredPHIRecord, PHINode*> ExtractedVals; in SliceUpIllegalIntegerPHI()
702 PHINode *PN = PHIsToSlice[PHIId]; in SliceUpIllegalIntegerPHI()
706 PHINode *EltPHI; in SliceUpIllegalIntegerPHI()
713 EltPHI = PHINode::Create(Ty, PN->getNumIncomingValues(), in SliceUpIllegalIntegerPHI()
736 if (PHINode *InPHI = dyn_cast<PHINode>(PN)) { in SliceUpIllegalIntegerPHI()
760 if (PHINode *OldInVal = dyn_cast<PHINode>(PN->getIncomingValue(i))) in SliceUpIllegalIntegerPHI()
790 Instruction *InstCombiner::visitPHINode(PHINode &PN) { in visitPHINode()
811 if (PHINode *PU = dyn_cast<PHINode>(PHIUser)) { in visitPHINode()
812 SmallPtrSet<PHINode*, 16> PotentiallyDeadPHIs; in visitPHINode()
841 isa<PHINode>(PN.getIncomingValue(InValNo))) in visitPHINode()
851 if (OpVal != NonPhiInVal && !isa<PHINode>(OpVal)) in visitPHINode()
859 SmallPtrSet<PHINode*, 16> ValueEqualPHIs; in visitPHINode()
870 PHINode *FirstPN = cast<PHINode>(PN.getParent()->begin()); in visitPHINode()