/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 29 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() 40 Instruction *I = dyn_cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 89 Instruction *InInst = cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 112 NewBinOp->copyIRFlags(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() 115 NewBinOp->andIRFlags(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 122 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0)); in FoldPHIArgGEPIntoPHI() 139 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI() 212 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI() 277 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI() 308 LoadInst *LI = dyn_cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 25 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() 45 Instruction *I = dyn_cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 101 Instruction *InInst = cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 131 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0)); in FoldPHIArgGEPIntoPHI() 148 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI() 221 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI() 288 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI() 319 LoadInst *LI = dyn_cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI() 357 Value *NewInVal = cast<LoadInst>(PN.getIncomingValue(i))->getOperand(0); in FoldPHIArgLoadIntoPHI() 379 cast<LoadInst>(PN.getIncomingValue(i))->setVolatile(false); in FoldPHIArgLoadIntoPHI() [all …]
|
D | InstructionCombining.cpp | 619 Value *InVal = PN->getIncomingValue(i); in FoldOpIntoPhi() 672 if (Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i))) in FoldOpIntoPhi() 675 InV = Builder->CreateSelect(PN->getIncomingValue(i), in FoldOpIntoPhi() 683 if (Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i))) in FoldOpIntoPhi() 686 InV = Builder->CreateICmp(CI->getPredicate(), PN->getIncomingValue(i), in FoldOpIntoPhi() 689 InV = Builder->CreateFCmp(CI->getPredicate(), PN->getIncomingValue(i), in FoldOpIntoPhi() 697 if (Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i))) in FoldOpIntoPhi() 701 PN->getIncomingValue(i), C, "phitmp"); in FoldOpIntoPhi() 709 if (Constant *InC = dyn_cast<Constant>(PN->getIncomingValue(i))) in FoldOpIntoPhi() 713 PN->getIncomingValue(i), I.getType(), "phitmp"); in FoldOpIntoPhi()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 34 auto *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in PHIArgMergedDebugLoc() 41 auto *I = cast<Instruction>(PN.getIncomingValue(i)); in PHIArgMergedDebugLoc() 133 Value *Arg = PN.getIncomingValue(i); in FoldIntegerTypedPHI() 285 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() 296 Instruction *I = dyn_cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 345 Instruction *InInst = cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 368 NewBinOp->copyIRFlags(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() 371 NewBinOp->andIRFlags(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 378 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0)); in FoldPHIArgGEPIntoPHI() 395 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | DemoteRegToStack.cpp | 66 if (PN->getIncomingValue(i) == &I) { in DemoteRegToStack() 130 if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) { in DemotePHIToStack() 134 new StoreInst(P->getIncomingValue(i), Slot, in DemotePHIToStack()
|
D | SSAUpdater.cpp | 82 PHI->getIncomingValue(i)) { in IsEquivalentPHI() 250 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() function in __anon6e30e9e10111::PHIiter
|
D | LoopSimplify.cpp | 469 if (PN->getIncomingValue(i) == PN && in FindPHIToPartitionLoops() 541 if (PN->getIncomingValue(i) != PN || in SeparateNestedLoop() 682 Value *IV = PN->getIncomingValue(i); in InsertUniqueBackedgeBlock() 699 PN->setIncomingValue(0, PN->getIncomingValue(PreheaderIdx)); in InsertUniqueBackedgeBlock()
|
/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 | 222 if (PN->getIncomingValue(i) == PN && in findPHIToPartitionLoops() 269 if (PN->getIncomingValue(i) != PN || in separateNestedLoop() 406 Value *IV = PN->getIncomingValue(i); in insertUniqueBackedgeBlock() 423 PN->setIncomingValue(0, PN->getIncomingValue(PreheaderIdx)); in insertUniqueBackedgeBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | MemorySSA.cpp | 180 EXPECT_EQ(MergePhi->getIncomingValue(0), EntryStoreAccess); in TEST_F() 181 EXPECT_EQ(MergePhi->getIncomingValue(1), LeftStoreAccess); in TEST_F() 195 EXPECT_EQ(MergePhi->getIncomingValue(0), SecondEntryStoreAccess); in TEST_F() 196 EXPECT_EQ(MergePhi->getIncomingValue(1), LeftStoreAccess); in TEST_F() 365 EXPECT_EQ(MergePhi->getIncomingValue(1), EntryStoreAccess); in TEST_F() 366 EXPECT_EQ(MergePhi->getIncomingValue(0), SideStoreAccess); in TEST_F() 370 EXPECT_EQ(MergePhi->getIncomingValue(0), NewStoreAccess); in TEST_F() 371 EXPECT_EQ(MergePhi->getIncomingValue(1), NewStoreAccess); in TEST_F() 408 EXPECT_EQ(MergePhi->getIncomingValue(1), EntryStoreAccess); in TEST_F() 409 EXPECT_EQ(MergePhi->getIncomingValue(0), SideStoreAccess); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | DemoteRegToStack.cpp | 72 if (PN->getIncomingValue(i) == &I) { in DemoteRegToStack() 131 if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) { in DemotePHIToStack() 135 new StoreInst(P->getIncomingValue(i), Slot, in DemotePHIToStack()
|
D | BasicBlockUtils.cpp | 91 if (PN->getIncomingValue(0) != PN) in FoldSingleEntryPHINodes() 92 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in FoldSingleEntryPHINodes() 151 if (!isa<PHINode>(PN.getIncomingValue(0)) || in MergeBlockIntoPredecessor() 152 cast<PHINode>(PN.getIncomingValue(0))->getParent() != BB) in MergeBlockIntoPredecessor() 153 IncomingValues.push_back(PN.getIncomingValue(0)); in MergeBlockIntoPredecessor() 434 InVal = PN->getIncomingValue(i); in UpdatePHINodes() 435 else if (InVal != PN->getIncomingValue(i)) { in UpdatePHINodes()
|
D | LoopUnrollRuntime.cpp | 375 Value *InVal = NewPHI->getIncomingValue(idx); in CloneLoopBlocks() 782 Value *newVal = VMap.lookup(Phi->getIncomingValue(i)); in UnrollRuntimeLoopRemainder() 788 newVal = Phi->getIncomingValue(i); in UnrollRuntimeLoopRemainder() 789 VMap[Phi->getIncomingValue(i)] = Phi->getIncomingValue(i); in UnrollRuntimeLoopRemainder()
|
D | SSAUpdater.cpp | 88 PHI->getIncomingValue(i)) { in IsEquivalentPHI() 247 Value *getIncomingValue() { return PHI->getIncomingValue(idx); } in getIncomingValue() function in llvm::SSAUpdaterTraits::PHI_iterator
|
D | LoopSimplify.cpp | 190 if (PN->getIncomingValue(i) == PN && in findPHIToPartitionLoops() 237 if (PN->getIncomingValue(i) != PN || in separateNestedLoop() 395 Value *IV = PN->getIncomingValue(i); in insertUniqueBackedgeBlock() 412 PN->setIncomingValue(0, PN->getIncomingValue(PreheaderIdx)); in insertUniqueBackedgeBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 189 if (Phi->getIncomingValue(i) != BoolTrue) in isElse() 193 if (Phi->getIncomingValue(i) != BoolFalse) in isElse() 245 Value *Incoming = Phi->getIncomingValue(i); in handleLoopCondition() 261 Value *Incoming = Phi->getIncomingValue(i); in handleLoopCondition()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 196 if (Phi->getIncomingValue(i) != BoolTrue) in isElse() 200 if (Phi->getIncomingValue(i) != BoolFalse) in isElse() 252 Value *Incoming = Phi->getIncomingValue(i); in handleLoopCondition() 268 Value *Incoming = Phi->getIncomingValue(i); in handleLoopCondition()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | CallSiteSplitting.cpp | 426 if (PN->getIncomingValue(0) == PN->getIncomingValue(1)) in isPredicatedOnPHI() 428 if (isa<Constant>(PN->getIncomingValue(0)) && in isPredicatedOnPHI() 429 isa<Constant>(PN->getIncomingValue(1))) in isPredicatedOnPHI()
|
D | LoopInterchange.cpp | 731 Instruction *Ins = dyn_cast<Instruction>(PHI.getIncomingValue(0)); in containsSafePHI() 885 dyn_cast<Instruction>(InnerInductionVar->getIncomingValue(1)); in currentLimitations() 888 dyn_cast<Instruction>(InnerInductionVar->getIncomingValue(0)); in currentLimitations() 963 Instruction *IncomingI = dyn_cast<Instruction>(PHI.getIncomingValue(i)); in areLoopExitPHIsSupported() 1277 InnerIndexVar = dyn_cast<Instruction>(InductionPHI->getIncomingValue(1)); in transform() 1279 InnerIndexVar = dyn_cast<Instruction>(InductionPHI->getIncomingValue(0)); in transform()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 95 Value *Incoming = P->getIncomingValue(i); in processPHI() 98 Constant *C = LVI->getConstantOnEdge(P->getIncomingValue(i), in processPHI()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 192 if (PHI->getIncomingValue(i) != Def) in getInsertPointForUses() 251 auto *InitValueVal = dyn_cast<ConstantFP>(PN->getIncomingValue(IncomingEdge)); in handleFloatingPointIV() 259 auto *Incr = dyn_cast<BinaryOperator>(PN->getIncomingValue(BackEdge)); in handleFloatingPointIV() 546 Value *InVal = PN->getIncomingValue(i); in rewriteLoopExitValues() 640 Instruction *Inst = cast<Instruction>(PN->getIncomingValue(Phi.Ith)); in rewriteLoopExitValues() 712 dyn_cast<PHINode>(PN->getIncomingValue(IncomingValIdx)); in rewriteFirstIterationLoopExitValues() 728 ExitVal->getIncomingValue(PreheaderIdx)); in rewriteFirstIterationLoopExitValues() 768 if (Phi.PN == P && (Phi.PN)->getIncomingValue(i) == Incoming) { in canLoopBeDeleted() 1670 Value *IncV = Phi->getIncomingValue(Idx); in needsLFTR() 1720 Value *IncV = Phi->getIncomingValue(LatchIdx); in AlmostDeadIV() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | BasicBlock.cpp | 256 if (PN->getIncomingValue(0) != PN) in removePredecessor() 257 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARC.h | 95 auto *PNOpnd = PN.getIncomingValue(I)->stripPointerCasts(); in getEquivalentPHIs()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | MemorySSA.h | 511 MemoryAccess *getIncomingValue(unsigned I) const { return getOperand(I); } 563 return getIncomingValue(Idx); 574 setIncomingValue(I, getIncomingValue(E - 1)); 585 if (Pred(getIncomingValue(I), getIncomingBlock(I))) { 1068 return MP->getIncomingValue(ArgNo);
|