Home
last modified time | relevance | path

Searched refs:SelectInst (Results 1 – 25 of 76) sorted by relevance

1234

/external/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp33 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, in relatedSelect()
38 if (const SelectInst *SB = dyn_cast<SelectInst>(B)) in relatedSelect()
154 if (const SelectInst *S = dyn_cast<SelectInst>(A)) in relatedCheck()
156 if (const SelectInst *S = dyn_cast<SelectInst>(B)) in relatedCheck()
DProvenanceAnalysis.h35 class SelectInst; variable
58 bool relatedSelect(const SelectInst *A, const Value *B);
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp271 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitMul()
553 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFMul()
717 SelectInst *SI = cast<SelectInst>(I.getOperand(1)); in SimplifyDivRemOfSelect()
800 if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I)) in commonIDivTransforms()
873 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in commonIDivTransforms()
893 return SelectInst::Create(Cmp, Op1, ConstantInt::get(I.getType(), 0)); in commonIDivTransforms()
975 return SelectInst::Create(ICI, Constant::getNullValue(I.getType()), in foldUDivNegCst()
1031 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitUDivOperand()
1098 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(), in visitUDiv()
1224 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFDiv()
[all …]
DInstCombineSelect.cpp121 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI, in FoldSelectOpOp()
208 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp()
298 static Value *foldSelectICmpAndOr(const SelectInst &SI, Value *TrueVal, in foldSelectICmpAndOr()
404 Instruction *InstCombiner::visitSelectInstWithICmp(SelectInst &SI, in visitSelectInstWithICmp()
613 const SelectInst &SI) { in CanSelectOperandBeMappingIntoPredBlock()
697 SelectInst *SI = cast<SelectInst>(Inner); in FoldSPFofSPF()
755 static Value *foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, in foldSelectICmpAnd()
826 Instruction *InstCombiner::visitSelectInst(SelectInst &SI) { in visitSelectInst()
937 return SelectInst::Create(NewCond, FalseVal, TrueVal, in visitSelectInst()
980 return SelectInst::Create(NewCond, FalseVal, TrueVal, in visitSelectInst()
[all …]
DInstCombineAddSub.cpp1079 return SelectInst::Create(ZI->getOperand(0), AddOne(CI), CI); in visitAdd()
1197 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitAdd()
1204 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd()
1207 SI = dyn_cast<SelectInst>(RHS); in visitAdd()
1219 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd()
1223 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd()
1331 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitFAdd()
1410 return SelectInst::Create(C, A, B); in visitFAdd()
1537 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub()
1710 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFSub()
DInstCombineInternal.h302 Instruction *FoldSelectOpOp(SelectInst &SI, Instruction *TI, Instruction *FI);
303 Instruction *FoldSelectIntoOp(SelectInst &SI, Value *, Value *);
308 Instruction *visitSelectInst(SelectInst &SI);
309 Instruction *visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
341 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp,
351 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);
DInstCombineShifts.cpp34 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()
DInstCombineCasts.cpp207 Res = SelectInst::Create(I->getOperand(0), True, False); in EvaluateInDifferentType()
303 if (SelectInst *SI = dyn_cast<SelectInst>(Src)) in commonCastTransforms()
411 SelectInst *SI = cast<SelectInst>(I); in canEvaluateTruncated()
486 if (SelectInst *SI = dyn_cast<SelectInst>(CI.getOperand(0))) in visitTrunc()
1379 SelectInst *SI = dyn_cast<SelectInst>(CI.getOperand(0)); in visitFPTrunc()
1388 return SelectInst::Create(SI->getOperand(0), LHSTrunc, RHSTrunc); in visitFPTrunc()
DInstCombineLoadStoreAlloca.cpp597 if (SelectInst *SI = dyn_cast<SelectInst>(P)) { in isObjectSizeLessThanOrEq()
850 if (SelectInst *SI = dyn_cast<SelectInst>(Op)) { in visitLoadInst()
861 return SelectInst::Create(SI->getCondition(), V1, V2); in visitLoadInst()
DInstCombineAndOrXor.cpp1372 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitAnd()
1551 return SelectInst::Create(X, Op1, Zero); in visitAnd()
1558 return SelectInst::Create(X, Zero, Op1); in visitAnd()
1767 return SelectInst::Create(Cond, C, B); in MatchSelectFromAndOr()
1769 return SelectInst::Create(Cond, C, B); in MatchSelectFromAndOr()
1773 return SelectInst::Create(Cond, C, D); in MatchSelectFromAndOr()
1775 return SelectInst::Create(Cond, C, D); in MatchSelectFromAndOr()
2276 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitOr()
2583 return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op1); in visitOr()
2585 return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op0); in visitOr()
[all …]
/external/llvm/include/llvm/Transforms/Scalar/
DSROA.h99 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp248 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
272 (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar()
274 if (Kind == RK_FloatMinMax && (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar()
319 !isa<SelectInst>(UI)) || in AddReductionVar()
368 assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) && in isMinMaxSelectCmpPattern()
371 SelectInst *Select = nullptr; in isMinMaxSelectCmpPattern()
376 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin()))) in isMinMaxSelectCmpPattern()
382 if (!(Select = dyn_cast<SelectInst>(I))) in isMinMaxSelectCmpPattern()
DGlobalStatus.cpp134 } else if (isa<SelectInst>(I)) { in analyzeGlobalAux()
DSimplifyIndVar.cpp270 SelectInst *Sel = in eliminateIVRemainder()
271 SelectInst::Create(ICmp, in eliminateIVRemainder()
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp43 bool processSelect(SelectInst *SI);
81 bool CorrelatedValuePropagation::processSelect(SelectInst *S) { in processSelect()
119 SelectInst *SI = dyn_cast<SelectInst>(Incoming); in processPHI()
374 BBChanged |= processSelect(cast<SelectInst>(II)); in runOnFunction()
DRewriteStatepointsForGC.cpp410 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValueOfVector()
546 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValue()
579 if (!isa<PHINode>(V) && !isa<SelectInst>(V) && in isKnownBaseResult()
749 return isa<PHINode>(BDV) || isa<SelectInst>(BDV) || in findBasePointer()
785 } else if (SelectInst *Sel = dyn_cast<SelectInst>(Current)) { in findBasePointer()
840 if (SelectInst *select = dyn_cast<SelectInst>(BDV)) { in findBasePointer()
921 } else if (SelectInst *Sel = dyn_cast<SelectInst>(I)) { in findBasePointer()
925 return SelectInst::Create(Sel->getCondition(), Undef, in findBasePointer()
1031 } else if (SelectInst *BaseSel = dyn_cast<SelectInst>(State.getBase())) { in findBasePointer()
1032 SelectInst *Sel = cast<SelectInst>(BDV); in findBasePointer()
DSROA.cpp596 static Value *foldSelectInst(SelectInst &SI) { in foldSelectInst()
614 return foldSelectInst(cast<SelectInst>(I)); in foldPHINodeOrSelectInst()
924 !isa<SelectInst>(I)) { in hasUnsafePHIOrSelectUse()
937 assert(isa<PHINode>(I) || isa<SelectInst>(I)); in visitPHINodeOrSelectInst()
989 void visitSelectInst(SelectInst &SI) { visitPHINodeOrSelectInst(SI); } in visitSelectInst()
1261 static bool isSafeSelectToSpeculate(SelectInst &SI) { in isSafeSelectToSpeculate()
1287 static void speculateSelectInstLoads(SelectInst &SI) { in speculateSelectInstLoads()
2208 SmallPtrSetImpl<SelectInst *> &SelectUsers;
2221 SmallPtrSetImpl<SelectInst *> &SelectUsers) in AllocaSliceRewriter()
2942 bool visitSelectInst(SelectInst &SI) { in visitSelectInst()
[all …]
DScalarReplAggregates.cpp1142 static bool isSafeSelectToSpeculate(SelectInst *SI) { in isSafeSelectToSpeculate()
1263 if (SelectInst *SI = dyn_cast<SelectInst>(U)) { in tryToMakeAllocaBePromotable()
1327 if (SelectInst *SI = dyn_cast<SelectInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable()
1652 } else if (isa<PHINode>(User) || isa<SelectInst>(User)) { in isSafeForScalarRepl()
1708 } else if (isa<PHINode>(UI) || isa<SelectInst>(UI)) { in isSafePHISelectUseForScalarRepl()
1973 if (isa<SelectInst>(User) || isa<PHINode>(User)) { in RewriteForScalarRepl()
/external/llvm/lib/Analysis/
DBasicAliasAnalysis.cpp504 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory()
1144 AliasResult BasicAAResult::aliasSelect(const SelectInst *SI, uint64_t SISize, in aliasSelect()
1150 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect()
1405 if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) { in aliasCheck()
1410 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheck()
DInstructionSimplify.cpp303 SelectInst *SI; in ThreadBinOpOverSelect()
304 if (isa<SelectInst>(LHS)) { in ThreadBinOpOverSelect()
305 SI = cast<SelectInst>(LHS); in ThreadBinOpOverSelect()
307 assert(isa<SelectInst>(RHS) && "No select instruction operand!"); in ThreadBinOpOverSelect()
308 SI = cast<SelectInst>(RHS); in ThreadBinOpOverSelect()
377 if (!isa<SelectInst>(LHS)) { in ThreadCmpOverSelect()
381 assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!"); in ThreadCmpOverSelect()
382 SelectInst *SI = cast<SelectInst>(LHS); in ThreadCmpOverSelect()
942 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyMulInst()
1065 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyDiv()
[all …]
DCostModel.cpp417 const SelectInst *SI = cast<SelectInst>(I); in getInstructionCost()
/external/llvm/include/llvm/Analysis/
DMemoryBuiltins.h198 SizeOffsetType visitSelectInst(SelectInst &I);
261 SizeOffsetEvalType visitSelectInst(SelectInst &I);
DBasicAliasAnalysis.h172 AliasResult aliasSelect(const SelectInst *SI, uint64_t SISize,
/external/llvm/lib/CodeGen/
DStackProtector.cpp167 } else if (const SelectInst *SI = dyn_cast<SelectInst>(U)) { in HasAddressTaken()
/external/llvm/test/Analysis/ScalarEvolution/
Dmin-max-exprs.ll4 ; ScalarEvolution even though they the ICmpInst and SelectInst have different

1234