Home
last modified time | relevance | path

Searched refs:getIncomingValue (Results 1 – 25 of 61) sorted by relevance

123

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp26 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI()
46 Instruction *I = dyn_cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI()
102 Instruction *InInst = cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI()
132 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0)); in FoldPHIArgGEPIntoPHI()
149 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI()
222 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI()
287 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI()
318 LoadInst *LI = dyn_cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI()
372 LoadInst *LI = cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI()
484 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgOpIntoPHI()
[all …]
DInstructionCombining.cpp817 Value *InVal = PN->getIncomingValue(i); in FoldOpIntoPhi()
872 Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i)); in FoldOpIntoPhi()
876 InV = Builder->CreateSelect(PN->getIncomingValue(i), in FoldOpIntoPhi()
884 if (Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i))) in FoldOpIntoPhi()
887 InV = Builder->CreateICmp(CI->getPredicate(), PN->getIncomingValue(i), in FoldOpIntoPhi()
890 InV = Builder->CreateFCmp(CI->getPredicate(), PN->getIncomingValue(i), in FoldOpIntoPhi()
898 if (Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i))) in FoldOpIntoPhi()
902 PN->getIncomingValue(i), C, "phitmp"); in FoldOpIntoPhi()
910 if (Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i))) in FoldOpIntoPhi()
914 PN->getIncomingValue(i), I.getType(), "phitmp"); in FoldOpIntoPhi()
/external/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp70 if (PN->getIncomingValue(i) == &I) { in DemoteRegToStack()
126 if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) { in DemotePHIToStack()
130 new StoreInst(P->getIncomingValue(i), Slot, in DemotePHIToStack()
DSSAUpdater.cpp74 PHI->getIncomingValue(i)) { in IsEquivalentPHI()
233 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() function in llvm::SSAUpdaterTraits::PHI_iterator
DLoopSimplify.cpp221 if (PN->getIncomingValue(i) == PN && in findPHIToPartitionLoops()
268 if (PN->getIncomingValue(i) != PN || in separateNestedLoop()
405 Value *IV = PN->getIncomingValue(i); in insertUniqueBackedgeBlock()
422 PN->setIncomingValue(0, PN->getIncomingValue(PreheaderIdx)); in insertUniqueBackedgeBlock()
DBasicBlockUtils.cpp73 if (PN->getIncomingValue(0) != PN) in FoldSingleEntryPHINodes()
74 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in FoldSingleEntryPHINodes()
410 InVal = PN->getIncomingValue(i); in UpdatePHINodes()
411 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes()
DLocal.cpp556 Value *NewVal = PN->getIncomingValue(0); in MergeBasicBlockIntoOnlyPred()
636 PN->getIncomingValue(PI))) { in CanPropagatePredecessorsForPHIs()
652 !CanMergeValues(Val, PN->getIncomingValue(PI))) { in CanPropagatePredecessorsForPHIs()
709 Value *V = PN->getIncomingValue(i); in gatherIncomingValuesToPhi()
724 Value *V = PN->getIncomingValue(i); in replaceUndefValuesInPhi()
773 Value *PredVal = OldValPN->getIncomingValue(i); in redirectValuesFromPredecessorsToPhi()
DLoopVersioning.cpp132 if (PN->getIncomingValue(0) == Inst) in addPHINodes()
DSimplifyCFG.cpp1650 Value *OrigV = PN->getIncomingValue(OrigI); in SpeculativelyExecuteBB()
1651 Value *ThenV = PN->getIncomingValue(ThenI); in SpeculativelyExecuteBB()
1735 ConstantInt *CB = dyn_cast<ConstantInt>(PN->getIncomingValue(i)); in FoldCondBranchOnPHI()
1854 if (!DominatesMergePoint(PN->getIncomingValue(0), BB, &AggressiveInsts, in FoldTwoEntryPHINode()
1856 !DominatesMergePoint(PN->getIncomingValue(1), BB, &AggressiveInsts, in FoldTwoEntryPHINode()
1869 (isa<BinaryOperator>(PN->getIncomingValue(0)) || in FoldTwoEntryPHINode()
1870 isa<BinaryOperator>(PN->getIncomingValue(1)) || in FoldTwoEntryPHINode()
1928 Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse); in FoldTwoEntryPHINode()
1929 Value *FalseVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfTrue); in FoldTwoEntryPHINode()
2780 Value *PBIV = PN->getIncomingValue(PBBIdx); in SimplifyCondBranchToCondBranch()
[all …]
DBreakCriticalEdges.cpp95 Value *V = PN->getIncomingValue(Idx); in createPHIsForSplitLoopExit()
DLoopUnrollRuntime.cpp218 Value *InVal = NewPHI->getIncomingValue(idx); in CloneLoopBlocks()
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp177 if (Phi->getIncomingValue(i) != BoolTrue) in isElse()
181 if (Phi->getIncomingValue(i) != BoolFalse) in isElse()
227 Value *Incoming = Phi->getIncomingValue(i); in handleLoopCondition()
243 Value *Incoming = Phi->getIncomingValue(i); in handleLoopCondition()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp226 if (PHI->getIncomingValue(i) != Def) in getInsertPointForUses()
285 auto *InitValueVal = dyn_cast<ConstantFP>(PN->getIncomingValue(IncomingEdge)); in handleFloatingPointIV()
293 auto *Incr = dyn_cast<BinaryOperator>(PN->getIncomingValue(BackEdge)); in handleFloatingPointIV()
599 Value *InVal = PN->getIncomingValue(i); in rewriteLoopExitValues()
694 Instruction *Inst = cast<Instruction>(PN->getIncomingValue(Phi.Ith)); in rewriteLoopExitValues()
748 if (Phi.PN == P && (Phi.PN)->getIncomingValue(i) == Incoming) { in canLoopBeDeleted()
1647 Value *IncV = Phi->getIncomingValue(Idx); in needsLFTR()
1697 Value *IncV = Phi->getIncomingValue(LatchIdx); in AlmostDeadIV()
1759 Value *IncV = Phi->getIncomingValue(LatchIdx); in FindLoopCounter()
DLoopInterchange.cpp727 Instruction *Ins = dyn_cast<Instruction>(PHI->getIncomingValue(0)); in containsSafePHI()
820 dyn_cast<Instruction>(InnerInductionVar->getIncomingValue(1)); in currentLimitations()
823 dyn_cast<Instruction>(InnerInductionVar->getIncomingValue(0)); in currentLimitations()
1044 InnerIndexVar = dyn_cast<Instruction>(InductionPHI->getIncomingValue(1)); in transform()
1046 InnerIndexVar = dyn_cast<Instruction>(InductionPHI->getIncomingValue(0)); in transform()
DCorrelatedValuePropagation.cpp109 Value *Incoming = P->getIncomingValue(i); in processPHI()
/external/llvm/lib/IR/
DBasicBlock.cpp306 if (PN->getIncomingValue(0) != PN) in removePredecessor()
307 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor()
/external/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp57 if (related(A->getIncomingValue(i), in relatedPHI()
/external/llvm/lib/Analysis/
DScalarEvolutionNormalization.cpp54 if (PN->getIncomingValue(i) == Operand && in IVUseShouldUsePostIncValue()
DSparsePropagation.cpp264 LatticeVal OpVal = getOrInitValueState(PN.getIncomingValue(i)); in visitPHINode()
DValueTracking.cpp1402 Value *L = P->getIncomingValue(i); in computeKnownBitsFromOperator()
1403 Value *R = P->getIncomingValue(!i); in computeKnownBitsFromOperator()
2052 Value *Start = PN->getIncomingValue(0); in isKnownNonZero()
2053 Value *Induction = PN->getIncomingValue(1); in isKnownNonZero()
2327 Tmp = ComputeNumSignBits(PN->getIncomingValue(0), DL, Depth + 1, Q); in ComputeNumSignBits()
2331 Tmp, ComputeNumSignBits(PN->getIncomingValue(i), DL, Depth + 1, Q)); in ComputeNumSignBits()
3017 auto *PrevValue = dyn_cast<Instruction>(PN->getIncomingValue(0)); in isSameUnderlyingObjectInLoop()
3019 PrevValue = dyn_cast<Instruction>(PN->getIncomingValue(1)); in isSameUnderlyingObjectInLoop()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp425 Value *V = PN->getIncomingValue(0); in ComputePHILiveOutRegInfo()
460 Value *V = PN->getIncomingValue(i); in ComputePHILiveOutRegInfo()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp138 if (PN->getIncomingValue(I) == CE) { in replaceConstantExprOp()
/external/llvm/lib/CodeGen/
DMachineSSAUpdater.cpp264 unsigned getIncomingValue() { return PHI->getOperand(idx).getReg(); } in getIncomingValue() function in llvm::SSAUpdaterTraits::PHI_iterator
DWinEHPrepare.cpp711 Value *IV = SuccPN->getIncomingValue(OldBlockIdx); in cloneCommonBlocks()
961 Value *PredVal = PN->getIncomingValue(i); in insertPHIStores()
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdaterImpl.h410 ValT IncomingVal = I.getIncomingValue(); in CheckIfPHIMatches()

123