/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 86 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/ |
D | DemoteRegToStack.cpp | 71 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()
|
D | SSAUpdater.cpp | 73 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
|
D | CodeExtractor.cpp | 200 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()
|
D | BreakCriticalEdges.cpp | 177 if (PN->getIncomingBlock(BBIdx) != TIBB) in SplitCriticalEdge() 215 if (PN->getIncomingBlock(i) != NewBB) in SplitCriticalEdge() 216 OtherPreds.push_back(PN->getIncomingBlock(i)); in SplitCriticalEdge()
|
D | LoopSimplify.cpp | 222 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()
|
D | BasicBlockUtils.cpp | 407 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()
|
D | LCSSA.cpp | 82 UserBB = PN->getIncomingBlock(U); in processInstruction() 164 UserBB = PN->getIncomingBlock(*UseToRewrite); in processInstruction()
|
D | Local.cpp | 633 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()
|
D | LowerSwitch.cpp | 179 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis() 189 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
|
/external/llvm/lib/IR/ |
D | Dominators.cpp | 203 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()
|
D | BasicBlock.cpp | 291 BasicBlock *Other = APN->getIncomingBlock(APN->getIncomingBlock(0) == Pred); in removePredecessor()
|
/external/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 112 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()
|
D | ConstantHoisting.cpp | 233 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()
|
D | JumpThreading.cpp | 448 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()
|
D | IndVarSimplify.cpp | 229 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()
|
D | LoopInterchange.cpp | 690 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()
|
D | Sink.cpp | 90 UseBlock = PN->getIncomingBlock(Num); in AllUsesDominatedByBlock()
|
D | LICM.cpp | 556 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/ |
D | SIAnnotateControlFlow.cpp | 175 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/ |
D | ProvenanceAnalysis.cpp | 58 PNB->getIncomingValueForBlock(A->getIncomingBlock(i)), DL)) in relatedPHI()
|
D | ObjCARCContract.cpp | 576 BasicBlock *BB = PHI->getIncomingBlock(ValNo); in runOnFunction() 584 if (PHI->getIncomingBlock(i) == BB) { in runOnFunction()
|
/external/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 757 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()
|
D | ScalarEvolutionNormalization.cpp | 55 !DT->dominates(LatchBlock, PN->getIncomingBlock(i))) in IVUseShouldUsePostIncValue()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCBoolRetToInt.cpp | 89 Q->addIncoming(Zero, P->getIncomingBlock(i)); in translate()
|