/external/llvm/lib/Transforms/ObjCARC/ |
D | ProvenanceAnalysis.cpp | 33 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, in relatedSelect() 38 if (const SelectInst *SB = dyn_cast<SelectInst>(B)) in relatedSelect() 155 if (const SelectInst *S = dyn_cast<SelectInst>(A)) in relatedCheck() 157 if (const SelectInst *S = dyn_cast<SelectInst>(B)) in relatedCheck()
|
D | ProvenanceAnalysis.h | 35 class SelectInst; variable 58 bool relatedSelect(const SelectInst *A, const Value *B);
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 260 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitMul() 542 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFMul() 707 SelectInst *SI = cast<SelectInst>(I.getOperand(1)); in SimplifyDivRemOfSelect() 790 if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I)) in commonIDivTransforms() 863 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in commonIDivTransforms() 883 return SelectInst::Create(Cmp, Op1, ConstantInt::get(I.getType(), 0)); in commonIDivTransforms() 965 return SelectInst::Create(ICI, Constant::getNullValue(I.getType()), in foldUDivNegCst() 1021 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitUDivOperand() 1088 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(), in visitUDiv() 1214 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFDiv() [all …]
|
D | InstCombineSelect.cpp | 28 SelectInst *SI = dyn_cast<SelectInst>(V); in MatchSelectPattern() 148 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI, in FoldSelectOpOp() 235 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() 391 static Value *foldSelectICmpAndOr(const SelectInst &SI, Value *TrueVal, in foldSelectICmpAndOr() 499 Instruction *InstCombiner::visitSelectInstWithICmp(SelectInst &SI, in visitSelectInstWithICmp() 743 const SelectInst &SI) { in CanSelectOperandBeMappingIntoPredBlock() 827 SelectInst *SI = cast<SelectInst>(Inner); in FoldSPFofSPF() 839 static Value *foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, in foldSelectICmpAnd() 910 Instruction *InstCombiner::visitSelectInst(SelectInst &SI) { in visitSelectInst() 1019 return SelectInst::Create(NewCond, FalseVal, TrueVal, in visitSelectInst() [all …]
|
D | InstCombineAddSub.cpp | 1079 return SelectInst::Create(ZI->getOperand(0), AddOne(CI), CI); in visitAdd() 1209 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitAdd() 1216 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd() 1219 SI = dyn_cast<SelectInst>(RHS); in visitAdd() 1231 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd() 1235 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd() 1343 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitFAdd() 1422 return SelectInst::Create(C, A, B); in visitFAdd() 1550 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 1711 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFSub()
|
D | InstCombineInternal.h | 308 Instruction *FoldSelectOpOp(SelectInst &SI, Instruction *TI, Instruction *FI); 309 Instruction *FoldSelectIntoOp(SelectInst &SI, Value *, Value *); 314 Instruction *visitSelectInst(SelectInst &SI); 315 Instruction *visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI); 347 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp, 356 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);
|
D | InstCombineShifts.cpp | 34 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms() 168 SelectInst *SI = cast<SelectInst>(I); in CanEvaluateShifted() 362 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in FoldShiftByConstant()
|
D | InstCombineLoadStoreAlloca.cpp | 516 if (SelectInst *SI = dyn_cast<SelectInst>(P)) { in isObjectSizeLessThanOrEq() 751 if (SelectInst *SI = dyn_cast<SelectInst>(Op)) { in visitLoadInst() 762 return SelectInst::Create(SI->getCondition(), V1, V2); in visitLoadInst()
|
D | InstCombineAndOrXor.cpp | 1323 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitAnd() 1494 return SelectInst::Create(X, Op1, Zero); in visitAnd() 1501 return SelectInst::Create(X, Zero, Op1); in visitAnd() 1678 return SelectInst::Create(Cond, C, B); in MatchSelectFromAndOr() 1680 return SelectInst::Create(Cond, C, B); in MatchSelectFromAndOr() 1684 return SelectInst::Create(Cond, C, D); in MatchSelectFromAndOr() 1686 return SelectInst::Create(Cond, C, D); in MatchSelectFromAndOr() 2188 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitOr() 2497 return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op1); in visitOr() 2499 return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op0); in visitOr() [all …]
|
D | InstCombineCasts.cpp | 208 Res = SelectInst::Create(I->getOperand(0), True, False); in EvaluateInDifferentType() 304 if (SelectInst *SI = dyn_cast<SelectInst>(Src)) in commonCastTransforms() 412 SelectInst *SI = cast<SelectInst>(I); in CanEvaluateTruncated() 1301 SelectInst *SI = dyn_cast<SelectInst>(CI.getOperand(0)); in visitFPTrunc() 1309 return SelectInst::Create(SI->getOperand(0), LHSTrunc, RHSTrunc); in visitFPTrunc()
|
/external/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 41 bool processSelect(SelectInst *SI); 73 bool CorrelatedValuePropagation::processSelect(SelectInst *S) { in processSelect() 111 SelectInst *SI = dyn_cast<SelectInst>(Incoming); in processPHI() 304 BBChanged |= processSelect(cast<SelectInst>(II)); in runOnFunction()
|
D | RewriteStatepointsForGC.cpp | 422 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValue() 458 if (!isa<PHINode>(V) && !isa<SelectInst>(V)) { in isKnownBaseResult() 640 } else if (SelectInst *sel = dyn_cast<SelectInst>(v)) { in findBasePointer() 679 if (SelectInst *select = dyn_cast<SelectInst>(v)) { in findBasePointer() 744 SelectInst *sel = cast<SelectInst>(v); in findBasePointer() 747 SelectInst *basesel = SelectInst::Create(sel->getCondition(), undef, in findBasePointer() 834 SelectInst *basesel = cast<SelectInst>(state.getBase()); in findBasePointer() 835 SelectInst *sel = cast<SelectInst>(v); in findBasePointer()
|
D | SROA.cpp | 600 static Value *foldSelectInst(SelectInst &SI) { in foldSelectInst() 618 return foldSelectInst(cast<SelectInst>(I)); in foldPHINodeOrSelectInst() 928 !isa<SelectInst>(I)) { in hasUnsafePHIOrSelectUse() 941 assert(isa<PHINode>(I) || isa<SelectInst>(I)); in visitPHINodeOrSelectInst() 993 void visitSelectInst(SelectInst &SI) { visitPHINodeOrSelectInst(SI); } in visitSelectInst() 1243 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects; 1475 static bool isSafeSelectToSpeculate(SelectInst &SI) { in isSafeSelectToSpeculate() 1501 static void speculateSelectInstLoads(SelectInst &SI) { in speculateSelectInstLoads() 2412 SmallPtrSetImpl<SelectInst *> &SelectUsers; 2425 SmallPtrSetImpl<SelectInst *> &SelectUsers) in AllocaSliceRewriter() [all …]
|
D | ScalarReplAggregates.cpp | 1141 static bool isSafeSelectToSpeculate(SelectInst *SI) { in isSafeSelectToSpeculate() 1262 if (SelectInst *SI = dyn_cast<SelectInst>(U)) { in tryToMakeAllocaBePromotable() 1326 if (SelectInst *SI = dyn_cast<SelectInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable() 1651 } else if (isa<PHINode>(User) || isa<SelectInst>(User)) { in isSafeForScalarRepl() 1707 } else if (isa<PHINode>(UI) || isa<SelectInst>(UI)) { in isSafePHISelectUseForScalarRepl() 1972 if (isa<SelectInst>(User) || isa<PHINode>(User)) { in RewriteForScalarRepl()
|
D | EarlyCSE.cpp | 70 isa<SelectInst>(Inst) || isa<ExtractElementInst>(Inst) || in canHandle() 135 isa<GetElementPtrInst>(Inst) || isa<SelectInst>(Inst) || in getHashValue()
|
/external/llvm/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 564 AliasResult aliasSelect(const SelectInst *SI, uint64_t SISize, 626 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory() 1258 BasicAliasAnalysis::aliasSelect(const SelectInst *SI, uint64_t SISize, in aliasSelect() 1264 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect() 1495 if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) { in aliasCheck() 1500 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheck()
|
D | InstructionSimplify.cpp | 302 SelectInst *SI; in ThreadBinOpOverSelect() 303 if (isa<SelectInst>(LHS)) { in ThreadBinOpOverSelect() 304 SI = cast<SelectInst>(LHS); in ThreadBinOpOverSelect() 306 assert(isa<SelectInst>(RHS) && "No select instruction operand!"); in ThreadBinOpOverSelect() 307 SI = cast<SelectInst>(RHS); in ThreadBinOpOverSelect() 376 if (!isa<SelectInst>(LHS)) { in ThreadCmpOverSelect() 380 assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!"); in ThreadCmpOverSelect() 381 SelectInst *SI = cast<SelectInst>(LHS); in ThreadCmpOverSelect() 943 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyMulInst() 1066 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyDiv() [all …]
|
D | CostModel.cpp | 422 const SelectInst *SI = cast<SelectInst>(I); in getInstructionCost()
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 198 SizeOffsetType visitSelectInst(SelectInst &I); 261 SizeOffsetEvalType visitSelectInst(SelectInst &I);
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 167 } else if (const SelectInst *SI = dyn_cast<SelectInst>(U)) { in HasAddressTaken()
|
/external/llvm/test/Analysis/ScalarEvolution/ |
D | min-max-exprs.ll | 4 ; ScalarEvolution even though they the ICmpInst and SelectInst have different
|
/external/llvm/include/llvm/IR/ |
D | Instructions.h | 1587 class SelectInst : public Instruction { 1595 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr, 1602 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr, 1610 SelectInst *clone_impl() const override; 1612 static SelectInst *Create(Value *C, Value *S1, Value *S2, 1615 return new(3) SelectInst(C, S1, S2, NameStr, InsertBefore); 1617 static SelectInst *Create(Value *C, Value *S1, Value *S2, 1620 return new(3) SelectInst(C, S1, S2, NameStr, InsertAtEnd); 1651 struct OperandTraits<SelectInst> : public FixedNumOperandTraits<SelectInst, 3> { 1654 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(SelectInst, Value)
|
/external/llvm/lib/Transforms/Utils/ |
D | GlobalStatus.cpp | 130 } else if (isa<SelectInst>(I)) { in analyzeGlobalAux()
|
D | SimplifyIndVar.cpp | 223 SelectInst *Sel = in eliminateIVRemainder() 224 SelectInst::Create(ICmp, in eliminateIVRemainder()
|
D | SimplifyCFG.cpp | 1168 std::map<std::pair<Value*,Value*>, SelectInst*> InsertedSelects; in HoistThenElseCodeToIf() 1179 SelectInst *&SI = InsertedSelects[std::make_pair(BB1V, BB2V)]; in HoistThenElseCodeToIf() 1181 SI = cast<SelectInst> in HoistThenElseCodeToIf() 1906 SelectInst *NV = in FoldTwoEntryPHINode() 1907 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode() 2547 Value *NV = cast<SelectInst> in SimplifyCondBranchToCondBranch() 2631 static bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select) { in SimplifySwitchOnSelect() 2667 static bool SimplifyIndirectBrOnSelect(IndirectBrInst *IBI, SelectInst *SI) { in SimplifyIndirectBrOnSelect() 3398 if (SelectInst *Select = dyn_cast<SelectInst>(I)) { in ConstantFold() 4280 if (SelectInst *Select = dyn_cast<SelectInst>(Cond)) in SimplifySwitch() [all …]
|