Home
last modified time | relevance | path

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

1234

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DProvenanceAnalysis.cpp41 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, in relatedSelect()
45 if (const SelectInst *SB = dyn_cast<SelectInst>(B)) in relatedSelect()
150 if (const SelectInst *S = dyn_cast<SelectInst>(A)) in relatedCheck()
152 if (const SelectInst *S = dyn_cast<SelectInst>(B)) in relatedCheck()
H A DProvenanceAnalysis.h37 class SelectInst; variable
62 bool relatedSelect(const SelectInst *A, const Value *B);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp169 SmallVector<SelectInst *, 8> Selects;
390 void fixupSelect(SelectInst* SI,
691 SelectInst *SI, Region *R, in checkBiasedSelect()
716 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint()
729 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint()
907 for (SelectInst *SI : Selects) { in checkScopeHoistable()
912 SelectInst *SI = *it; in checkScopeHoistable()
1050 for (SelectInst *SI : RI.Selects) { in getCHRConditionValuesForRegion()
1128 for (SelectInst *SI : RI.Selects) in getSelectsInScope()
1534 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == ICmp) in negateICmpIfUsedByBranchOrSelectOnly()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp1661 SelectInst *SI = cast<SelectInst>(Inner); in foldSPFofSPF()
2102 static Value *foldSelectCmpXchg(SelectInst &SI) { in foldSelectCmpXchg()
2606 return SelectInst::Create(Op, A, Zero); in foldAndOrOfSelectUsingImpliedCond()
2611 return SelectInst::Create(Op, One, A); in foldAndOrOfSelectUsingImpliedCond()
2617 return SelectInst::Create(Op, B, Zero); in foldAndOrOfSelectUsingImpliedCond()
2622 return SelectInst::Create(Op, One, B); in foldAndOrOfSelectUsingImpliedCond()
2752 if (auto *Op1SI = dyn_cast<SelectInst>(Op1)) in visitSelectInst()
2802 return SelectInst::Create(C1, A, B); in visitSelectInst()
2804 return SelectInst::Create(C2, B, A); in visitSelectInst()
3078 if (SelectInst *TrueSI = dyn_cast<SelectInst>(TrueVal)) { in visitSelectInst()
[all …]
H A DInstCombineInternal.h142 Instruction *visitSelectInst(SelectInst &SI);
185 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp,
328 Instruction *matchSAddSubSat(SelectInst &MinMax1);
562 bool matchThreeWayIntCompare(SelectInst *SI, Value *&LHS, Value *&RHS,
599 Instruction *foldVectorSelect(SelectInst &Sel);
610 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);
662 Instruction *foldICmpSelectConstant(ICmpInst &Cmp, SelectInst *Select,
706 Instruction *foldSelectExtConst(SelectInst &Sel);
708 Instruction *foldSelectIntoOp(SelectInst &SI, Value *, Value *);
712 Instruction *foldSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
[all …]
H A DInstCombineMulDivRem.cpp349 return SelectInst::Create(X, Op1, ConstantInt::get(I.getType(), 0)); in visitMul()
351 return SelectInst::Create(X, Op0, ConstantInt::get(I.getType(), 0)); in visitMul()
630 SelectInst *SI = dyn_cast<SelectInst>(I.getOperand(1)); in simplifyDivRemOfSelectWithZeroOp()
819 return SelectInst::Create(Cmp, Op1, ConstantInt::get(Ty, 0)); in commonIDivTransforms()
956 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitUDivOperand()
1084 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(), in visitUDiv()
1186 return SelectInst::Create(Cond, ConstantInt::get(Ty, 1), NegOne); in visitSDiv()
1348 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFDiv()
1353 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFDiv()
1450 if (SelectInst *SI = dyn_cast<SelectInst>(Op0I)) { in commonIRemTransforms()
[all …]
H A DInstCombineAddSub.cpp1378 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd()
1381 SI = dyn_cast<SelectInst>(RHS); in visitAdd()
1393 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd()
1874 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub()
2013 SelectInst *NewSel = in visitSub()
2109 return SelectInst::Create(Cmp, Neg, A); in visitSub()
2230 auto propagateSelectFMF = [&](SelectInst *S) { in visitFNeg()
2232 if (auto *OldSel = dyn_cast<SelectInst>(Op)) in visitFNeg()
2240 SelectInst *NewSel = SelectInst::Create(Cond, P, NegY); in visitFNeg()
2247 SelectInst *NewSel = SelectInst::Create(Cond, NegX, P); in visitFNeg()
[all …]
H A DInstCombineShifts.cpp389 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms()
510 SelectInst *SI = cast<SelectInst>(I); in canEvaluateShifted()
864 return SelectInst::Create(Cond, NewOp, NewShift); in FoldShiftByConstant()
883 return SelectInst::Create(Cond, NewShift, NewOp); in FoldShiftByConstant()
1025 return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty)); in visitShl()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DSROA.h33 class SelectInst; variable
110 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
H A DJumpThreading.h44 class SelectInst; variable
159 void unfoldSelectInstr(BasicBlock *Pred, BasicBlock *BB, SelectInst *SI,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDFAJumpThreading.cpp116 SelectInst *SI;
120 SelectInstToUnfold(SelectInst *SI, PHINode *SIUse) : SI(SI), SIUse(SIUse) {} in SelectInstToUnfold()
122 SelectInst *getInst() { return SI; } in getInst()
217 DomTreeUpdater *DTU, SelectInst *SI, PHINode *SIUse, SelectInst *SIToSink, in createBasicBlockAndSinkSelectInst()
243 SelectInst *SI = SIToUnfold.getInst(); in unfold()
261 if (SelectInst *SIOp = dyn_cast<SelectInst>(SI->getTrueValue())) { in unfold()
266 if (SelectInst *SIOp = dyn_cast<SelectInst>(SI->getFalseValue())) { in unfold()
474 } else if (SelectInst *SelI = dyn_cast<SelectInst>(Current)) { in isPredictable()
518 bool isValidSelectInst(SelectInst *SI) { in isValidSelectInst()
524 if (!SIUse && !(isa<PHINode>(SIUse) || isa<SelectInst>(SIUse))) in isValidSelectInst()
[all …]
H A DTailRecursionElimination.cpp418 SmallVector<SelectInst *, 8> RetSelects;
705 SelectInst *SI = SelectInst::Create( in eliminateCall()
778 SelectInst *SI = SelectInst::Create( in cleanupAndFinalize()
788 for (SelectInst *SI : RetSelects) { in cleanupAndFinalize()
H A DJumpThreading.cpp950 if (SelectInst *SI = dyn_cast<SelectInst>(I)) { in computeValueKnownInPredecessorsImpl()
2733 SelectInst *SI, PHINode *SIUse, in unfoldSelectInstr()
2776 SelectInst *PredSI = dyn_cast<SelectInst>(CondPHI->getIncomingValue(I)); in tryToUnfoldSelect()
2817 SelectInst *SI = dyn_cast<SelectInst>(CondLHS->getIncomingValue(I)); in tryToUnfoldSelect()
2885 auto isUnfoldCandidate = [BB](SelectInst *SI, Value *V) { in tryToUnfoldSelectInCurrBB()
2896 SelectInst *SI = nullptr; in tryToUnfoldSelectInCurrBB()
2903 if (SelectInst *SelectI = dyn_cast<SelectInst>(Cmp->user_back())) in tryToUnfoldSelectInCurrBB()
2908 } else if (SelectInst *SelectI = dyn_cast<SelectInst>(U.getUser())) { in tryToUnfoldSelectInCurrBB()
H A DLoopUnswitch.cpp630 auto HasUndefInSelect = [](SelectInst &SI) { in equalityPropUnSafe()
636 SelectInst *LSI = dyn_cast<SelectInst>(LHS); in equalityPropUnSafe()
637 SelectInst *RSI = dyn_cast<SelectInst>(RHS); in equalityPropUnSafe()
831 if (SelectInst *SI = dyn_cast<SelectInst>(BBI)) { in processCurrentLoop()
H A DLowerExpectIntrinsic.cpp364 if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) { in lowerExpectIntrinsic()
H A DRewriteStatepointsForGC.cpp489 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValueOfVector()
626 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValue()
660 return !isa<PHINode>(V) && !isa<SelectInst>(V) && in isOriginalBaseResult()
836 return isa<PHINode>(BDV) || isa<SelectInst>(BDV) || in findBasePointer()
861 } else if (SelectInst *SI = dyn_cast<SelectInst>(BDV)) { in findBasePointer()
1075 } else if (isa<SelectInst>(I)) { in findBasePointer()
1172 } else if (SelectInst *BaseSI = in findBasePointer()
1173 dyn_cast<SelectInst>(State.getBaseValue())) { in findBasePointer()
1174 SelectInst *SI = cast<SelectInst>(BDV); in findBasePointer()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp625 bool matchRightShift(SelectInst *SelI, ParsedValues &PV);
1653 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(0))) { in setupPreSimplifier()
1661 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(1))) { in setupPreSimplifier()
1675 SelectInst *Sel = dyn_cast<SelectInst>(I); in setupPreSimplifier()
1680 if (SelectInst *Sel0 = dyn_cast<SelectInst>(Sel->getTrueValue())) { in setupPreSimplifier()
1684 if (SelectInst *Sel1 = dyn_cast<SelectInst>(Sel->getFalseValue())) { in setupPreSimplifier()
1833 SelectInst *SI = dyn_cast<SelectInst>(&In); in recognize()
1839 SelectInst *SelI = (T && isa<SelectInst>(T)) ? cast<SelectInst>(T) : SI; in recognize()
1868 SelectInst *SI = dyn_cast<SelectInst>(&In); in recognize()
1873 SelectInst *SelI = dyn_cast_or_null<SelectInst>(T); in recognize()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DIVDescriptors.cpp321 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
336 if (auto *Sel = dyn_cast<SelectInst>(ReduxDesc.getPatternInst())) { in AddReductionVar()
353 bool IsASelect = isa<SelectInst>(Cur); in AddReductionVar()
371 (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar()
374 (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar()
424 !isa<SelectInst>(UI)) || in AddReductionVar()
511 assert((isa<CmpInst>(I) || isa<SelectInst>(I)) && in isMinMaxSelectCmpPattern()
518 if (auto *Select = dyn_cast<SelectInst>(*I->user_begin())) in isMinMaxSelectCmpPattern()
559 SelectInst *SI = dyn_cast<SelectInst>(I); in isConditionalRdxPattern()
922 if (isa<SelectInst>(*Cur->user_begin())) in getReductionOpChain()
H A DBasicAliasAnalysis.cpp644 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory()
1273 BasicAAResult::aliasSelect(const SelectInst *SI, LocationSize SISize, in aliasSelect()
1278 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect()
1639 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheckRecursive()
1643 } else if (const SelectInst *S2 = dyn_cast<SelectInst>(V2)) { in aliasCheckRecursive()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp99 bool isSigned(const SelectInst &I) const;
136 bool promoteUniformOpToI32(SelectInst &I) const;
210 bool visitSelectInst(SelectInst &I);
253 bool AMDGPUCodeGenPrepare::isSigned(const SelectInst &I) const { in isSigned()
389 bool AMDGPUCodeGenPrepare::promoteUniformOpToI32(SelectInst &I) const { in promoteUniformOpToI32()
560 static SelectInst *findSelectThroughCast(Value *V, CastInst *&Cast) { in findSelectThroughCast()
562 if (SelectInst *Sel = dyn_cast<SelectInst>(V)) in findSelectThroughCast()
566 if (SelectInst *Sel = dyn_cast<SelectInst>(Cast->getOperand(0))) in findSelectThroughCast()
582 SelectInst *Sel = findSelectThroughCast(BO.getOperand(0), CastOp); in foldBinOpIntoSelect()
1353 bool AMDGPUCodeGenPrepare::visitSelectInst(SelectInst &I) { in visitSelectInst()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h49 class SelectInst; variable
282 SizeOffsetType visitSelectInst(SelectInst &I);
349 SizeOffsetEvalType visitSelectInst(SelectInst &I);
H A DBasicAliasAnalysis.h39 class SelectInst; variable
221 AliasResult aliasSelect(const SelectInst *SI, LocationSize SISize,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp77 } else if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) { in VPInstructionsToVPRecipes()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1666 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == Cmp) in foldICmpWithDominatingICmp()
3758 if (SelectInst *Select = dyn_cast<SelectInst>(V)) { in FillPlaceholders()
3803 if (SelectInst *CurrentSelect = dyn_cast<SelectInst>(Current)) { in InsertPlaceholders()
3806 SelectInst *Select = SelectInst::Create( in InsertPlaceholders()
5149 if (SelectInst *SI = dyn_cast<SelectInst>(V)) { in optimizeMemoryInst()
6640 SelectInst *SI, bool isTrue, in getTrueOrFalseValue()
6730 SmallVector<SelectInst *, 2> ASI; in optimizeSelectInst()
6734 SelectInst *I = dyn_cast<SelectInst>(&*It); in optimizeSelectInst()
6742 SelectInst *LastSI = ASI.back(); in optimizeSelectInst()
6815 for (SelectInst *SI : ASI) { in optimizeSelectInst()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCalledValuePropagation.cpp181 return visitSelect(*cast<SelectInst>(&I), ChangedValues, SS); in ComputeInstructionState()
299 void visitSelect(SelectInst &I, in visitSelect()

1234