/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 677 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr() 750 Y = TrueVal; in foldSelectICmpAndBinOp() 1093 if (TrueVal != Ctlz && !match(TrueVal, m_SpecificInt(BitWidth))) in foldSelectCtlzToCttz() 1129 Value *ValueOnZero = TrueVal; in foldSelectCttzCtlz() 1283 if (TrueVal != CmpLHS && in foldSelectValueEquivalence() 1305 if (TrueVal != CmpRHS && in foldSelectValueEquivalence() 2708 std::swap(TrueVal, X); in foldSelectWithFCmpToFabs() 2854 Value *TrueVal = nullptr; member 3316 !match(TrueVal, in foldBitCeil() 3477 MatchCmp1 = TrueVal; in visitSelectInst() [all …]
|
H A D | InstCombineShifts.cpp | 589 Value *TrueVal = SI->getTrueValue(); in canEvaluateShifted() local 591 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted() 857 Value *TrueVal; in FoldShiftByConstant() local 858 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant() 861 if (!isa<Constant>(TrueVal) && FBO->getOperand(0) == TrueVal && in FoldShiftByConstant() 867 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), TrueVal, C1); in FoldShiftByConstant()
|
H A D | InstructionCombining.cpp | 1005 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() local 1011 match(SelectOp, m_Select(m_Value(CondVal), m_Value(TrueVal), in foldBinOpOfSelectAndCastOfSelectCondition() 1045 Value *NewTrueVal = NewFoldedConst(false, TrueVal); in foldBinOpOfSelectAndCastOfSelectCondition() 1051 Value *NewTrueVal = NewFoldedConst(true, TrueVal); in foldBinOpOfSelectAndCastOfSelectCondition() 1232 Value *TrueVal = LHSInst->getOperand(1); in matchSymmetricPair() local 1234 if (Cond == RHSInst->getOperand(0) && TrueVal == RHSInst->getOperand(2) && in matchSymmetricPair() 1236 return std::pair(TrueVal, FalseVal); in matchSymmetricPair()
|
H A D | InstCombineAddSub.cpp | 2471 Value *Cond, *TrueVal, *FalseVal; in visitSub() local 2472 if (!match(Select, m_OneUse(m_Select(m_Value(Cond), m_Value(TrueVal), in visitSub() 2475 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) in visitSub() 2480 bool OtherHandOfSubIsTrueVal = OtherHandOfSub == TrueVal; in visitSub() 2481 Value *NewSub = SubBuilder(OtherHandOfSubIsTrueVal ? FalseVal : TrueVal); in visitSub()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 118 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp() 4628 std::swap(TrueVal, FalseVal); in simplifySelectWithICmpCond() 4684 if (match(TrueVal, in simplifySelectWithICmpCond() 4790 return TrueVal; in simplifySelectInst() 4811 return TrueVal; in simplifySelectInst() 4829 return TrueVal; in simplifySelectInst() 4863 if (TrueVal == FalseVal) in simplifySelectInst() 4864 return TrueVal; in simplifySelectInst() 4866 if (Cond == TrueVal) { in simplifySelectInst() 4876 if (match(TrueVal, m_One())) in simplifySelectInst() [all …]
|
H A D | ValueTracking.cpp | 7367 std::swap(TrueVal, FalseVal); in matchFastFloatClamp() 7372 LHS = TrueVal; in matchFastFloatClamp() 7414 if (CmpRHS != TrueVal) { in matchClamp() 7416 std::swap(TrueVal, FalseVal); in matchClamp() 7561 LHS = TrueVal; in matchMinMax() 7660 OutputZeroVal = TrueVal; in matchSelectPattern() 7774 if (isKnownNegation(TrueVal, FalseVal)) { in matchSelectPattern() 7781 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern() 7784 LHS = TrueVal; in matchSelectPattern() 7807 RHS = TrueVal; in matchSelectPattern() [all …]
|
H A D | LazyValueInfo.cpp | 850 ValueLatticeElement &TrueVal = *OptTrueVal; in solveBlockValueSelect() local 858 if (TrueVal.isConstantRange() || FalseVal.isConstantRange()) { in solveBlockValueSelect() 859 const ConstantRange &TrueCR = toConstantRange(TrueVal, SI->getType()); in solveBlockValueSelect() 884 ResultCR, TrueVal.isConstantRangeIncludingUndef() || in solveBlockValueSelect() 891 TrueCR.abs(), TrueVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 915 TrueVal = in solveBlockValueSelect() 916 intersect(TrueVal, *getValueFromCondition(SI->getTrueValue(), Cond, in solveBlockValueSelect() 925 ValueLatticeElement Result = TrueVal; in solveBlockValueSelect()
|
H A D | IVDescriptors.cpp | 734 Value *TrueVal = SI->getTrueValue(); in isConditionalRdxPattern() local 738 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern() 739 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern() 743 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern() 744 : dyn_cast<Instruction>(TrueVal); in isConditionalRdxPattern()
|
H A D | InlineCost.cpp | 2363 Value *TrueVal = SI.getTrueValue(); in visitSelectInst() local 2366 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst() 2368 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst() 2386 ConstantOffsetPtrs.lookup(TrueVal); in visitSelectInst() 2392 if (auto *SROAArg = getSROAArgForValueOrNull(TrueVal)) in visitSelectInst() 2401 Value *SelectedV = CondC->isAllOnesValue() ? TrueVal in visitSelectInst()
|
H A D | ScalarEvolution.cpp | 6098 const SCEV *LA = getSCEV(TrueVal); in createNodeForSelectOrPHIInstWithICmpInstCond() 6141 std::swap(TrueVal, FalseVal); in createNodeForSelectOrPHIInstWithICmpInstCond() 6148 const SCEV *TrueValExpr = getSCEV(TrueVal); // C+y in createNodeForSelectOrPHIInstWithICmpInstCond() 6160 isa<ConstantInt>(TrueVal) && cast<ConstantInt>(TrueVal)->isZero()) { in createNodeForSelectOrPHIInstWithICmpInstCond() 6219 const auto *SETrue = SE->getSCEV(TrueVal); in createNodeForSelectViaUMinSeq() 6225 Value *V, Value *Cond, Value *TrueVal, Value *FalseVal) { in createNodeForSelectOrPHIViaUMinSeq() argument 6227 assert(TrueVal->getType() == FalseVal->getType() && in createNodeForSelectOrPHIViaUMinSeq() 6228 V->getType() == TrueVal->getType() && in createNodeForSelectOrPHIViaUMinSeq() 6248 return getSCEV(CI->isOne() ? TrueVal : FalseVal); in createNodeForSelectOrPHI() 7146 const APInt *TrueVal, *FalseVal; in getRangeViaFactoring() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ProfDataUtils.cpp | 135 bool extractBranchWeights(const Instruction &I, uint64_t &TrueVal, in extractBranchWeights() argument 150 TrueVal = Weights[0]; in extractBranchWeights()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ProfDataUtils.h | 88 bool extractBranchWeights(const Instruction &I, uint64_t &TrueVal,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoopVectorizationPlanner.h | 170 VPValue *createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal, 174 FMFs ? new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal}, 176 : new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal},
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | TGLexer.h | 58 TrueVal, enumerator
|
H A D | TGLexer.cpp | 358 .Case("true", tgtok::TrueVal) in LexIdentifier()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VECustomDAG.cpp | 413 auto TrueVal = DAG.getConstant(-1, DL, MVT::i32); in getConstantMask() local 415 auto Res = getNode(VEISD::VEC_BROADCAST, MaskVT, {TrueVal, AVL}); in getConstantMask()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | InstructionSimplify.h | 162 Value *simplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
H A D | ScalarEvolution.h | 1720 Value *TrueVal, Value *FalseVal); 1724 Value *TrueVal, 1731 const SCEV *createNodeForSelectOrPHI(Value *V, Value *Cond, Value *TrueVal,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 5384 SDValue KTmp = isa<ConstantSDNode>(TrueVal) ? TrueVal : FalseVal; in isLowerSaturatingConditional() 5385 V = (KTmp == TrueVal) ? FalseVal : TrueVal; in isLowerSaturatingConditional() 5462 std::swap(TrueVal, FalseVal); in LowerSELECT_CC() 5487 FalseVal = TrueVal; in LowerSELECT_CC() 12587 SDValue TrueVal = OtherOp; in combineSelectAndUse() local 12592 std::swap(TrueVal, FalseVal); in combineSelectAndUse() 13202 SDValue TrueVal; in PerformSELECTCombine() local 13211 TrueVal = N->getOperand(1); in PerformSELECTCombine() 13217 TrueVal = N->getOperand(2); in PerformSELECTCombine() 13252 switch (TrueVal->getOpcode()) { in PerformSELECTCombine() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SelectOptimize.cpp | 900 uint64_t &TrueVal, uint64_t &FalseVal) { in extractBranchWeights() argument 902 return extractBranchWeights(*SI.getI(), TrueVal, FalseVal); in extractBranchWeights()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiISelLowering.cpp | 1432 SDValue TrueVal = OtherOp; in combineSelectAndUse() local 1437 std::swap(TrueVal, FalseVal); in combineSelectAndUse() 1439 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 883 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in computeValueKnownInPredecessorsImpl() local 886 if ((TrueVal || FalseVal) && in computeValueKnownInPredecessorsImpl() 902 KnownCond = (TrueVal != nullptr); in computeValueKnownInPredecessorsImpl() 906 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in computeValueKnownInPredecessorsImpl()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | CombinerHelper.h | 905 bool matchFPSelectToMinMax(Register Dst, Register Cond, Register TrueVal,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 1681 Value *TrueVal = I.getTrueValue(); in visitSelectInst() local 1703 auto *IITrue = dyn_cast<IntrinsicInst>(TrueVal); in visitSelectInst() 1707 if (Pred == FCmpInst::FCMP_UNO && TrueVal == CmpVal && IIFalse && in visitSelectInst()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeFloatTypes.cpp | 2694 SDValue TrueVal = GetPromotedFloat(N->getOperand(1)); in PromoteFloatRes_SELECT() local 2697 return DAG.getNode(ISD::SELECT, SDLoc(N), TrueVal->getValueType(0), in PromoteFloatRes_SELECT() 2698 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT() 2704 SDValue TrueVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT_CC() local 2708 TrueVal.getNode()->getValueType(0), N->getOperand(0), in PromoteFloatRes_SELECT_CC() 2709 N->getOperand(1), TrueVal, FalseVal, N->getOperand(4)); in PromoteFloatRes_SELECT_CC()
|