Home
last modified time | relevance | path

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

12345

/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp493 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 DDemoteRegToStack.cpp70 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 DSSAUpdater.cpp85 PHI->getIncomingValue(i)) { in IsEquivalentPHI()
238 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() function in llvm::SSAUpdaterTraits::PHI_iterator
H A DLoopSimplify.cpp188 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 DLoopVersioning.cpp140 if (PN->getIncomingValue(0) == Inst) { in addPHINodes()
165 Value *ClonedValue = PN->getIncomingValue(0); in addPHINodes()
H A DBasicBlockUtils.cpp150 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 DCanonicalizeFreezeInLoops.cpp186 PHI->getOperandNumForIncomingValue(PHI->getIncomingValue(0) == StepI); in run()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DCallSiteSplitting.cpp429 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 DLoopInterchange.cpp707 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 DGVNSink.cpp236 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 DIndVarSimplify.cpp219 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 DMergeICmps.cpp798 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 DSimplifyCFG.cpp283 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 DMVEGatherScatterLowering.cpp821 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 DRISCVGatherScatterLowering.cpp200 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 DAMDGPURewriteUndefForPHI.cpp120 Value *Incoming = PHI.getIncomingValue(i); in INITIALIZE_PASS_DEPENDENCY()
H A DSIAnnotateControlFlow.cpp175 if (Phi->getIncomingValue(i) != BoolTrue) in isElse()
179 if (Phi->getIncomingValue(i) != BoolFalse) in isElse()
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DMemorySSA.h530 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 DBPFCheckAndAdjustIR.cpp84 auto *GV = dyn_cast<GlobalVariable>(PN->getIncomingValue(i)); in checkIR()
/openbsd/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h82 auto *PNOpnd = PN.getIncomingValue(I)->stripPointerCasts(); in getEquivalentPHIs()
H A DProvenanceAnalysis.cpp81 if (related(A->getIncomingValue(i), in relatedPHI()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DIVDescriptors.cpp1222 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 DXCoreLowerThreadLocal.cpp87 if (PN->getIncomingValue(I) == CE) { in replaceConstantExprOp()
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp452 Value *V = PN->getIncomingValue(0); in ComputePHILiveOutRegInfo()
488 Value *V = PN->getIncomingValue(i); in ComputePHILiveOutRegInfo()
/openbsd/gnu/llvm/llvm/lib/IR/
H A DSafepointIRVerifier.cpp678 const Value *InValue = PN->getIncomingValue(i); in removeValidUnrelocatedDefs()
812 const Value *InValue = PN->getIncomingValue(i); in verifyInstruction()

12345