/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 493 NewBinOp->copyIRFlags(PN.getIncomingValue(0)); in foldPHIArgBinOpIntoPHI() 959 BinOp->copyIRFlags(PN.getIncomingValue(0)); in foldPHIArgOpIntoPHI() 1391 if (isa<Instruction>(PN.getIncomingValue(0)) && in visitPHINode() 1392 isa<Instruction>(PN.getIncomingValue(1)) && in visitPHINode() 1395 PN.getIncomingValue(0)->hasOneUser()) in visitPHINode() 1403 Value *IV0 = PN.getIncomingValue(0); in visitPHINode() 1460 Value *VA = PN.getIncomingValue(I); in visitPHINode() 1486 isa<PHINode>(PN.getIncomingValue(InValNo))) in visitPHINode() 1495 Value *OpVal = PN.getIncomingValue(InValNo); in visitPHINode() 1521 Value *VA = PN.getIncomingValue(I); in visitPHINode() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | DemoteRegToStack.cpp | 70 if (PN->getIncomingValue(i) == &I) { in DemoteRegToStack() 138 if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) { in DemotePHIToStack() 142 new StoreInst(P->getIncomingValue(i), Slot, in DemotePHIToStack()
|
H A D | SSAUpdater.cpp | 85 PHI->getIncomingValue(i)) { in IsEquivalentPHI() 238 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() function in llvm::SSAUpdaterTraits::PHI_iterator
|
H A D | LoopSimplify.cpp | 188 if (PN->getIncomingValue(i) == PN && in findPHIToPartitionLoops() 256 if (PN->getIncomingValue(i) != PN || in separateNestedLoop() 411 Value *IV = PN->getIncomingValue(i); in insertUniqueBackedgeBlock() 428 PN->setIncomingValue(0, PN->getIncomingValue(PreheaderIdx)); in insertUniqueBackedgeBlock()
|
H A D | LoopVersioning.cpp | 140 if (PN->getIncomingValue(0) == Inst) { in addPHINodes() 165 Value *ClonedValue = PN->getIncomingValue(0); in addPHINodes()
|
H A D | BasicBlockUtils.cpp | 150 if (PN->getIncomingValue(0) != PN) in FoldSingleEntryPHINodes() 151 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in FoldSingleEntryPHINodes() 230 if (!isa<PHINode>(PN.getIncomingValue(0)) || in MergeBlockIntoPredecessor() 231 cast<PHINode>(PN.getIncomingValue(0))->getParent() != BB) in MergeBlockIntoPredecessor() 232 IncomingValues.push_back(PN.getIncomingValue(0)); in MergeBlockIntoPredecessor() 845 Value *V = PN.getIncomingValue(Idx); in createPHIsForSplitLoopExit() 1127 InVal = PN->getIncomingValue(i); in UpdatePHINodes() 1128 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes()
|
H A D | CanonicalizeFreezeInLoops.cpp | 186 PHI->getOperandNumForIncomingValue(PHI->getIncomingValue(0) == StepI); in run()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | CallSiteSplitting.cpp | 429 if (PN.getIncomingValue(0) == PN.getIncomingValue(1)) in isPredicatedOnPHI() 431 if (isa<Constant>(PN.getIncomingValue(0)) && in isPredicatedOnPHI() 432 isa<Constant>(PN.getIncomingValue(1))) in isPredicatedOnPHI()
|
H A D | LoopInterchange.cpp | 707 return followLCSSA(PHI->getIncomingValue(0)); in followLCSSA() 894 Instruction *IncomingI = dyn_cast<Instruction>(PHI.getIncomingValue(i)); in areOuterLoopExitPHIsSupported() 1308 dyn_cast<Instruction>(CurInductionPHI->getIncomingValue(1))); in transform() 1311 dyn_cast<Instruction>(CurInductionPHI->getIncomingValue(0))); in transform() 1522 auto I = dyn_cast<Instruction>(P.getIncomingValue(0)); in moveLCSSAPhis() 1527 NewPhi->setIncomingValue(0, P.getIncomingValue(0)); in moveLCSSAPhis() 1534 NewPhi->addIncoming(P.getIncomingValue(0), Pred); in moveLCSSAPhis()
|
H A D | GVNSink.cpp | 236 Ops.push_back({PN->getIncomingBlock(I), PN->getIncomingValue(I)}); in ModelledPHI() 629 return V == PN->getIncomingValue(0); in foldPointlessPHINodes() 632 if (PN->getIncomingValue(0) != PN) in foldPointlessPHINodes() 633 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in foldPointlessPHINodes()
|
H A D | IndVarSimplify.cpp | 219 auto *InitValueVal = dyn_cast<ConstantFP>(PN->getIncomingValue(IncomingEdge)); in handleFloatingPointIV() 227 auto *Incr = dyn_cast<BinaryOperator>(PN->getIncomingValue(BackEdge)); in handleFloatingPointIV() 481 auto *ExitVal = dyn_cast<PHINode>(PN.getIncomingValue(IncomingValIdx)); in rewriteFirstIterationLoopExitValues() 498 ExitVal->getIncomingValue(PreheaderIdx)); in rewriteFirstIterationLoopExitValues() 758 Value *IncV = Phi->getIncomingValue(Idx); in needsLFTR() 852 Value *IncV = Phi->getIncomingValue(LatchIdx); in AlmostDeadIV() 882 Value *IncV = Phi->getIncomingValue(LatchIdx); in isLoopCounter()
|
H A D | MergeICmps.cpp | 798 if (isa<ConstantInt>(Phi.getIncomingValue(I))) continue; in processPhi() 804 if (!isa<ICmpInst>(Phi.getIncomingValue(I)) || in processPhi() 805 cast<ICmpInst>(Phi.getIncomingValue(I))->getParent() != in processPhi()
|
/openbsd/gnu/llvm/llvm/examples/IRTransforms/ |
H A D | SimplifyCFG.cpp | 283 PN.replaceAllUsesWith(PN.getIncomingValue(0)); in mergeIntoSinglePredecessor_v1() 334 PN.replaceAllUsesWith(PN.getIncomingValue(0)); in mergeIntoSinglePredecessor_v2()
|
/openbsd/gnu/llvm/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 821 Offsets = Phi->getIncomingValue(IncrementIndex); in tryCreateIncrementingWBGatScat() 839 Instruction::Shl, Phi->getIncomingValue(1 - IncrementIndex), in tryCreateIncrementingWBGatScat() 893 Instruction::Add, Phi->getIncomingValue(StartIndex), OffsSecondOperand, in pushOutAdd() 899 Phi->addIncoming(Phi->getIncomingValue(IncrementIndex), in pushOutAdd() 920 Phi->getIncomingValue(LoopIncrement == 1 ? 0 : 1), in pushOutMulShl() 1029 int IncrementingBlock = Phi->getIncomingValue(0) == IncInstruction ? 0 : 1; in optimiseOffsets() 1065 NewPhi->addIncoming(Phi->getIncomingValue(IncrementingBlock == 1 ? 0 : 1), in optimiseOffsets()
|
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/ |
H A D | RISCVGatherScatterLowering.cpp | 200 unsigned IncrementingBlock = Phi->getIncomingValue(0) == Inc ? 0 : 1; in matchStridedRecurrence() 201 assert(Phi->getIncomingValue(IncrementingBlock) == Inc && in matchStridedRecurrence() 422 assert(BasePhi->getIncomingValue(IncrementingBlock) == Inc && in determineBaseAndStride()
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPURewriteUndefForPHI.cpp | 120 Value *Incoming = PHI.getIncomingValue(i); in INITIALIZE_PASS_DEPENDENCY()
|
H A D | SIAnnotateControlFlow.cpp | 175 if (Phi->getIncomingValue(i) != BoolTrue) in isElse() 179 if (Phi->getIncomingValue(i) != BoolFalse) in isElse()
|
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/ |
H A D | MemorySSA.h | 530 MemoryAccess *getIncomingValue(unsigned I) const { return getOperand(I); } 582 return getIncomingValue(Idx); 593 setIncomingValue(I, getIncomingValue(E - 1)); 604 if (Pred(getIncomingValue(I), getIncomingBlock(I))) { 1154 return MP->getIncomingValue(ArgNo);
|
/openbsd/gnu/llvm/llvm/lib/Target/BPF/ |
H A D | BPFCheckAndAdjustIR.cpp | 84 auto *GV = dyn_cast<GlobalVariable>(PN->getIncomingValue(i)); in checkIR()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARC.h | 82 auto *PNOpnd = PN.getIncomingValue(I)->stripPointerCasts(); in getEquivalentPHIs()
|
H A D | ProvenanceAnalysis.cpp | 81 if (related(A->getIncomingValue(i), in relatedPHI()
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | IVDescriptors.cpp | 1222 Instruction *Inc0 = dyn_cast<Instruction>(ExitPhi->getIncomingValue(0)); in getReductionOpChain() 1223 Instruction *Inc1 = dyn_cast<Instruction>(ExitPhi->getIncomingValue(1)); in getReductionOpChain() 1332 BEValue = Phi->getIncomingValue(0); in isFPInductionPHI() 1333 StartValue = Phi->getIncomingValue(1); in isFPInductionPHI() 1337 BEValue = Phi->getIncomingValue(1); in isFPInductionPHI() 1338 StartValue = Phi->getIncomingValue(0); in isFPInductionPHI()
|
/openbsd/gnu/llvm/llvm/lib/Target/XCore/ |
H A D | XCoreLowerThreadLocal.cpp | 87 if (PN->getIncomingValue(I) == CE) { in replaceConstantExprOp()
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 452 Value *V = PN->getIncomingValue(0); in ComputePHILiveOutRegInfo() 488 Value *V = PN->getIncomingValue(i); in ComputePHILiveOutRegInfo()
|
/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | SafepointIRVerifier.cpp | 678 const Value *InValue = PN->getIncomingValue(i); in removeValidUnrelocatedDefs() 812 const Value *InValue = PN->getIncomingValue(i); in verifyInstruction()
|