/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 849 bool SCEVExpander::isNormalAddRecExprPHI(PHINode *PN, Instruction *IncV, in isNormalAddRecExprPHI() argument 851 if (IncV->getNumOperands() == 0 || isa<PHINode>(IncV) || in isNormalAddRecExprPHI() 852 (isa<CastInst>(IncV) && !isa<BitCastInst>(IncV))) in isNormalAddRecExprPHI() 858 for (User::op_iterator OI = IncV->op_begin()+1, in isNormalAddRecExprPHI() 859 OE = IncV->op_end(); OI != OE; ++OI) in isNormalAddRecExprPHI() 865 IncV = dyn_cast<Instruction>(IncV->getOperand(0)); in isNormalAddRecExprPHI() 866 if (!IncV) in isNormalAddRecExprPHI() 869 if (IncV->mayHaveSideEffects()) in isNormalAddRecExprPHI() 872 if (IncV != PN) in isNormalAddRecExprPHI() 875 return isNormalAddRecExprPHI(PN, IncV, L); in isNormalAddRecExprPHI() [all …]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 821 bool SCEVExpander::isNormalAddRecExprPHI(PHINode *PN, Instruction *IncV, in isNormalAddRecExprPHI() argument 823 if (IncV->getNumOperands() == 0 || isa<PHINode>(IncV) || in isNormalAddRecExprPHI() 824 (isa<CastInst>(IncV) && !isa<BitCastInst>(IncV))) in isNormalAddRecExprPHI() 830 for (User::op_iterator OI = IncV->op_begin()+1, in isNormalAddRecExprPHI() 831 OE = IncV->op_end(); OI != OE; ++OI) in isNormalAddRecExprPHI() 837 IncV = dyn_cast<Instruction>(IncV->getOperand(0)); in isNormalAddRecExprPHI() 838 if (!IncV) in isNormalAddRecExprPHI() 841 if (IncV->mayHaveSideEffects()) in isNormalAddRecExprPHI() 844 if (IncV != PN) in isNormalAddRecExprPHI() 847 return isNormalAddRecExprPHI(PN, IncV, L); in isNormalAddRecExprPHI() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | ScalarEvolutionExpander.h | 112 static bool hoistStep(Instruction *IncV, Instruction *InsertPos, 238 bool isNormalAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L); 240 bool isExpandedAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L);
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolutionExpander.h | 182 Instruction *getIVIncOperand(Instruction *IncV, Instruction *InsertPos, 186 bool hoistIVInc(Instruction *IncV, Instruction *InsertPos); 353 bool isNormalAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L); 355 bool isExpandedAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 1333 static PHINode *getLoopPhiForCounter(Value *IncV, Loop *L, DominatorTree *DT) { in getLoopPhiForCounter() argument 1334 Instruction *IncI = dyn_cast<Instruction>(IncV); in getLoopPhiForCounter() 1408 Value *IncV = Phi->getIncomingValueForBlock(L->getLoopLatch()); in needsLFTR() local 1409 return Phi != getLoopPhiForCounter(IncV, L, DT); in needsLFTR() 1416 Value *IncV = Phi->getIncomingValue(LatchIdx); in AlmostDeadIV() local 1420 if (*UI != Cond && *UI != IncV) return false; in AlmostDeadIV() 1423 for (Value::use_iterator UI = IncV->use_begin(), UE = IncV->use_end(); in AlmostDeadIV() 1477 Value *IncV = Phi->getIncomingValue(LatchIdx); in FindLoopCounter() local 1478 if (getLoopPhiForCounter(IncV, L, DT) != Phi) in FindLoopCounter()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 1585 static PHINode *getLoopPhiForCounter(Value *IncV, Loop *L, DominatorTree *DT) { in getLoopPhiForCounter() argument 1586 Instruction *IncI = dyn_cast<Instruction>(IncV); in getLoopPhiForCounter() 1670 Value *IncV = Phi->getIncomingValue(Idx); in needsLFTR() local 1671 return Phi != getLoopPhiForCounter(IncV, L, DT); in needsLFTR() 1720 Value *IncV = Phi->getIncomingValue(LatchIdx); in AlmostDeadIV() local 1723 if (U != Cond && U != IncV) return false; in AlmostDeadIV() 1725 for (User *U : IncV->users()) in AlmostDeadIV() 1782 Value *IncV = Phi->getIncomingValue(LatchIdx); in FindLoopCounter() local 1783 if (getLoopPhiForCounter(IncV, L, DT) != Phi) in FindLoopCounter()
|
D | LoopStrengthReduce.cpp | 2774 Instruction *IncV = in CollectChains() local 2776 if (IncV) in CollectChains() 2777 ChainInstruction(PN, IncV, ChainUsersVec); in CollectChains() 2884 Value *IncV = Rewriter.expandCodeFor(LeftOverExpr, IntTy, InsertPt); in GenerateIVChain() local 2886 SE.getUnknown(IncV)); in GenerateIVChain()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelDAGToDAG.cpp | 300 SDValue IncV = CurDAG->getTargetConstant(Inc, dl, MVT::i32); in SelectIndexedLoad() local 332 IncV, Chain); in SelectIndexedLoad() 347 Base, IncV); in SelectIndexedLoad() 594 SDValue IncV = CurDAG->getTargetConstant(Inc, dl, MVT::i32); in SelectIndexedStore() local 604 SDValue Ops[] = { Base, IncV, Value, Chain }; in SelectIndexedStore() 617 Base, IncV); in SelectIndexedStore()
|