Home
last modified time | relevance | path

Searched refs:getIncomingBlock (Results 1 – 25 of 71) sorted by relevance

123

/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp86 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
94 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI()
105 NewLHS->addIncoming(NewInLHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
109 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI()
212 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI()
223 BasicBlock *InBB = PN.getIncomingBlock(i); in FoldPHIArgGEPIntoPHI()
305 if (FirstLI->getParent() != PN.getIncomingBlock(0) || in FoldPHIArgLoadIntoPHI()
325 LI->getParent() != PN.getIncomingBlock(i) || in FoldPHIArgLoadIntoPHI()
352 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI()
377 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI()
[all …]
/external/llvm/lib/Transforms/Utils/
DDemoteRegToStack.cpp71 Value *&V = Loads[PN->getIncomingBlock(i)]; in DemoteRegToStack()
75 PN->getIncomingBlock(i)->getTerminator()); in DemoteRegToStack()
127 assert(II->getParent() != P->getIncomingBlock(i) && in DemotePHIToStack()
131 P->getIncomingBlock(i)->getTerminator()); in DemotePHIToStack()
DSSAUpdater.cpp73 if (ValueMapping[PHI->getIncomingBlock(i)] != in IsEquivalentPHI()
102 BasicBlock *PredBB = SomePhi->getIncomingBlock(i); in GetValueInMiddleOfBlock()
183 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUse()
200 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUseAfterInsertions()
234 BasicBlock *getIncomingBlock() { return PHI->getIncomingBlock(idx); } in getIncomingBlock() function in llvm::SSAUpdaterTraits::PHI_iterator
DCodeExtractor.cpp200 if (Blocks.count(PN->getIncomingBlock(i))) in severSplitPHINodes()
237 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodes()
238 TerminatorInst *TI = PN->getIncomingBlock(i)->getTerminator(); in severSplitPHINodes()
255 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodes()
256 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes()
413 return P->getIncomingBlock(U); in FindPhiPredForUseInBlock()
746 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion()
760 if (Blocks.count(PN->getIncomingBlock(i))) { in extractCodeRegion()
761 if (ProcessedPreds.insert(PN->getIncomingBlock(i)).second) in extractCodeRegion()
DBreakCriticalEdges.cpp177 if (PN->getIncomingBlock(BBIdx) != TIBB) in SplitCriticalEdge()
215 if (PN->getIncomingBlock(i) != NewBB) in SplitCriticalEdge()
216 OtherPreds.push_back(PN->getIncomingBlock(i)); in SplitCriticalEdge()
DLoopSimplify.cpp222 L->contains(PN->getIncomingBlock(i))) in findPHIToPartitionLoops()
269 !L->contains(PN->getIncomingBlock(i))) { in separateNestedLoop()
271 if (isa<IndirectBrInst>(PN->getIncomingBlock(i)->getTerminator())) in separateNestedLoop()
273 OuterLoopPreds.push_back(PN->getIncomingBlock(i)); in separateNestedLoop()
404 BasicBlock *IBB = PN->getIncomingBlock(i); in insertUniqueBackedgeBlock()
423 PN->setIncomingBlock(0, PN->getIncomingBlock(PreheaderIdx)); in insertUniqueBackedgeBlock()
DBasicBlockUtils.cpp407 if (!PredSet.count(PN->getIncomingBlock(i))) in UpdatePHINodes()
428 if (PredSet.count(PN->getIncomingBlock(i))) in UpdatePHINodes()
448 BasicBlock *IncomingBB = PN->getIncomingBlock(i); in UpdatePHINodes()
796 Pred1 = SomePHI->getIncomingBlock(0); in GetIfCondition()
797 Pred2 = SomePHI->getIncomingBlock(1); in GetIfCondition()
DLCSSA.cpp82 UserBB = PN->getIncomingBlock(U); in processInstruction()
164 UserBB = PN->getIncomingBlock(*UseToRewrite); in processInstruction()
DLocal.cpp633 BasicBlock *IBB = PN->getIncomingBlock(PI); in CanPropagatePredecessorsForPHIs()
650 BasicBlock *IBB = PN->getIncomingBlock(PI); in CanPropagatePredecessorsForPHIs()
708 BasicBlock *BB = PN->getIncomingBlock(i); in gatherIncomingValuesToPhi()
728 BasicBlock *BB = PN->getIncomingBlock(i); in replaceUndefValuesInPhi()
772 BasicBlock *PredBB = OldValPN->getIncomingBlock(i); in redirectValuesFromPredecessorsToPhi()
832 if (PN->getIncomingBlock(U) != BB) in TryToSimplifyUncondBranchFromEmptyBlock()
DLowerSwitch.cpp179 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
189 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
/external/llvm/lib/IR/
DDominators.cpp203 PN->getIncomingBlock(U) == BBE.getStart()) in dominates()
210 UseBB = PN->getIncomingBlock(U); in dominates()
225 UseBB = PN->getIncomingBlock(U); in dominates()
276 return isReachableFromEntry(PN->getIncomingBlock(U)); in isReachableFromEntry()
DBasicBlock.cpp291 BasicBlock *Other = APN->getIncomingBlock(APN->getIncomingBlock(0) == Pred); in removePredecessor()
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp112 Value *V = LVI->getConstantOnEdge(Incoming, P->getIncomingBlock(i), BB, P); in processPHI()
125 Condition, P->getIncomingBlock(i), BB, P)) { in processPHI()
145 P->getIncomingBlock(i), BB, P) != in processPHI()
DConstantHoisting.cpp233 return cast<PHINode>(Inst)->getIncomingBlock(Idx)->getTerminator(); in findMatInsertPt()
453 BasicBlock *IncomingBB = PHI->getIncomingBlock(Idx); in updateOperand()
455 if (PHI->getIncomingBlock(i) == IncomingBB) { in updateOperand()
DJumpThreading.cpp448 Result.push_back(std::make_pair(KC, PN->getIncomingBlock(i))); in ComputeValueKnownInPredecessors()
451 PN->getIncomingBlock(i), in ComputeValueKnownInPredecessors()
454 Result.push_back(std::make_pair(KC, PN->getIncomingBlock(i))); in ComputeValueKnownInPredecessors()
556 BasicBlock *PredBB = PN->getIncomingBlock(i); in ComputeValueKnownInPredecessors()
1297 BasicBlock *PredBB = PN->getIncomingBlock(i); in ProcessBranchOnPHI()
1546 if (UserPN->getIncomingBlock(U) == BB) in ThreadEdge()
1773 if (UserPN->getIncomingBlock(U) == BB) in DuplicateCondBranchOnPHIIntoPred()
1832 BasicBlock *Pred = CondLHS->getIncomingBlock(I); in TryToUnfoldSelect()
DIndVarSimplify.cpp229 BasicBlock *InsertBB = PHI->getIncomingBlock(i); in getInsertPointForUses()
281 unsigned IncomingEdge = L->contains(PN->getIncomingBlock(0)); in handleFloatingPointIV()
435 PN->getIncomingBlock(IncomingEdge)); in handleFloatingPointIV()
440 NewPHI->addIncoming(NewAdd, PN->getIncomingBlock(BackEdge)); in handleFloatingPointIV()
604 if (LI->getLoopFor(PN->getIncomingBlock(i)) != L) in rewriteLoopExitValues()
1246 WidePhi->addIncoming(DU.WideDef, UsePhi->getIncomingBlock(0)); in widenIVUse()
2039 UseBB = P->getIncomingBlock(i); in sinkUnusedInvariants()
DLoopInterchange.cpp690 if (InnerInduction->getIncomingBlock(IncomBlockIndx) == in isLoopStructureUnderstood()
818 if (InnerInductionVar->getIncomingBlock(0) == InnerLoopPreHeader) in currentLimitations()
1043 if (InductionPHI->getIncomingBlock(0) == InnerLoopPreHeader) in transform()
1148 if (PHI->getIncomingBlock(i) == OldPred) in updateIncomingBlock()
DSink.cpp90 UseBlock = PN->getIncomingBlock(Num); in AllUsesDominatedByBlock()
DLICM.cpp556 if (CurLoop->contains(PN->getIncomingBlock(i))) in isNotUsedInLoop()
592 OpPN->addIncoming(OInst, PN.getIncomingBlock(i)); in CloneInstructionInExitBlock()
639 BasicBlock *BB = PN->getIncomingBlock(U); in sink()
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp175 if (Phi->getIncomingBlock(i) == IDom) { in isElse()
228 BasicBlock *From = Phi->getIncomingBlock(i); in handleLoopCondition()
247 BasicBlock *From = Phi->getIncomingBlock(i); in handleLoopCondition()
/external/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp58 PNB->getIncomingValueForBlock(A->getIncomingBlock(i)), DL)) in relatedPHI()
DObjCARCContract.cpp576 BasicBlock *BB = PHI->getIncomingBlock(ValNo); in runOnFunction()
584 if (PHI->getIncomingBlock(i) == BB) { in runOnFunction()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp757 Builder.SetInsertPoint(&*PHI.getIncomingBlock(i)->getFirstInsertionPt()); in visitPHINode()
767 SizePHI->addIncoming(EdgeData.first, PHI.getIncomingBlock(i)); in visitPHINode()
768 OffsetPHI->addIncoming(EdgeData.second, PHI.getIncomingBlock(i)); in visitPHINode()
DScalarEvolutionNormalization.cpp55 !DT->dominates(LatchBlock, PN->getIncomingBlock(i))) in IVUseShouldUsePostIncValue()
/external/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp89 Q->addIncoming(Zero, P->getIncomingBlock(i)); in translate()

123