/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 26 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 …]
|
D | InstructionCombining.cpp | 817 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/ |
D | DemoteRegToStack.cpp | 70 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()
|
D | SSAUpdater.cpp | 74 PHI->getIncomingValue(i)) { in IsEquivalentPHI() 233 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() function in llvm::SSAUpdaterTraits::PHI_iterator
|
D | LoopSimplify.cpp | 221 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()
|
D | BasicBlockUtils.cpp | 73 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()
|
D | Local.cpp | 556 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()
|
D | LoopVersioning.cpp | 132 if (PN->getIncomingValue(0) == Inst) in addPHINodes()
|
D | SimplifyCFG.cpp | 1650 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 …]
|
D | BreakCriticalEdges.cpp | 95 Value *V = PN->getIncomingValue(Idx); in createPHIsForSplitLoopExit()
|
D | LoopUnrollRuntime.cpp | 218 Value *InVal = NewPHI->getIncomingValue(idx); in CloneLoopBlocks()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 177 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/ |
D | IndVarSimplify.cpp | 226 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()
|
D | LoopInterchange.cpp | 727 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()
|
D | CorrelatedValuePropagation.cpp | 109 Value *Incoming = P->getIncomingValue(i); in processPHI()
|
/external/llvm/lib/IR/ |
D | BasicBlock.cpp | 306 if (PN->getIncomingValue(0) != PN) in removePredecessor() 307 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ProvenanceAnalysis.cpp | 57 if (related(A->getIncomingValue(i), in relatedPHI()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionNormalization.cpp | 54 if (PN->getIncomingValue(i) == Operand && in IVUseShouldUsePostIncValue()
|
D | SparsePropagation.cpp | 264 LatticeVal OpVal = getOrInitValueState(PN.getIncomingValue(i)); in visitPHINode()
|
D | ValueTracking.cpp | 1402 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/ |
D | FunctionLoweringInfo.cpp | 425 Value *V = PN->getIncomingValue(0); in ComputePHILiveOutRegInfo() 460 Value *V = PN->getIncomingValue(i); in ComputePHILiveOutRegInfo()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreLowerThreadLocal.cpp | 138 if (PN->getIncomingValue(I) == CE) { in replaceConstantExprOp()
|
/external/llvm/lib/CodeGen/ |
D | MachineSSAUpdater.cpp | 264 unsigned getIncomingValue() { return PHI->getOperand(idx).getReg(); } in getIncomingValue() function in llvm::SSAUpdaterTraits::PHI_iterator
|
D | WinEHPrepare.cpp | 711 Value *IV = SuccPN->getIncomingValue(OldBlockIdx); in cloneCommonBlocks() 961 Value *PredVal = PN->getIncomingValue(i); in insertPHIStores()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 410 ValT IncomingVal = I.getIncomingValue(); in CheckIfPHIMatches()
|