| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 642 if (match(TrueVal, m_Zero())) { in canonicalizeSaturatedSubtract() 644 std::swap(TrueVal, FalseVal); in canonicalizeSaturatedSubtract() 669 if (!TrueVal->hasOneUse()) in canonicalizeSaturatedSubtract() 702 Value *ValueOnZero = TrueVal; in foldSelectCttzCtlz() 787 CmpLHS = TrueVal; in adjustMinMax() 800 CmpLHS = TrueVal; in adjustMinMax() 818 std::swap(FalseVal, TrueVal); in adjustMinMax() 822 Sel.setOperand(1, TrueVal); in adjustMinMax() 1650 SI.setOperand(2, TrueVal); in visitSelectInst() 1679 if (CondVal == TrueVal) in visitSelectInst() [all …]
|
| H A D | InstCombineShifts.cpp | 175 Value *TrueVal = SI->getTrueValue(); in canEvaluateShifted() local 177 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted() 568 Value *TrueVal; in FoldShiftByConstant() local 569 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant() 572 if (!isa<Constant>(TrueVal) && FBO->getOperand(0) == TrueVal && in FoldShiftByConstant() 579 Builder.CreateBinOp(I.getOpcode(), TrueVal, Op1); in FoldShiftByConstant()
|
| H A D | InstCombineAddSub.cpp | 1568 Value *TrueVal = SI->getTrueValue(); in visitSub() local 1571 SI->setFalseValue(TrueVal); in visitSub()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 4528 std::swap(TrueVal, FalseVal); in matchFastFloatClamp() 4533 LHS = TrueVal; in matchFastFloatClamp() 4575 if (CmpRHS != TrueVal) { in matchClamp() 4577 std::swap(TrueVal, FalseVal); in matchClamp() 4707 LHS = TrueVal; in matchMinMax() 4724 if (match(TrueVal, m_Zero()) && in matchMinMax() 4809 OutputZeroVal = TrueVal; in matchSelectPattern() 4922 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern() 4925 LHS = TrueVal; in matchSelectPattern() 4944 RHS = TrueVal; in matchSelectPattern() [all …]
|
| H A D | InstructionSimplify.cpp | 104 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp() 3940 TrueVal || in simplifySelectWithICmpCond() 3942 TrueVal) in simplifySelectWithICmpCond() 3954 return TrueVal; in simplifySelectWithICmpCond() 3956 TrueVal || in simplifySelectWithICmpCond() 3958 TrueVal) in simplifySelectWithICmpCond() 3959 return TrueVal; in simplifySelectWithICmpCond() 4010 return TrueVal; in SimplifySelectInst() 4017 if (TrueVal == FalseVal) in SimplifySelectInst() 4018 return TrueVal; in SimplifySelectInst() [all …]
|
| H A D | LazyValueInfo.cpp | 845 ValueLatticeElement TrueVal = getBlockValue(SI->getTrueValue(), BB); in solveBlockValueSelect() local 848 if (TrueVal.isOverdefined()) { in solveBlockValueSelect() 867 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect() 868 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect() 902 TrueVal = intersect(TrueVal, in solveBlockValueSelect() 941 TrueVal = intersect(TrueVal, in solveBlockValueSelect() 950 Result.mergeIn(TrueVal, DL); in solveBlockValueSelect()
|
| H A D | IVDescriptors.cpp | 524 Value *TrueVal = SI->getTrueValue(); in isConditionalRdxPattern() local 528 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern() 529 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern() 533 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern() 534 : dyn_cast<Instruction>(TrueVal); in isConditionalRdxPattern()
|
| H A D | InlineCost.cpp | 1329 Value *TrueVal = SI.getTrueValue(); in visitSelectInst() local 1332 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst() 1334 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst() 1352 ConstantOffsetPtrs.lookup(TrueVal); in visitSelectInst() 1360 if (lookupSROAArgAndCost(TrueVal, SROAArg, CostIt)) in visitSelectInst() 1370 ? TrueVal in visitSelectInst()
|
| H A D | CFLGraph.h | 336 auto *TrueVal = Inst.getTrueValue(); in visitSelectInst() local 338 addAssignEdge(TrueVal, &Inst); in visitSelectInst()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 634 uint64_t TrueVal, FalseVal; in getLoopEstimatedTripCount() local 635 if (!LatchBR->extractProfMetadata(TrueVal, FalseVal)) in getLoopEstimatedTripCount() 638 if (!TrueVal || !FalseVal) in getLoopEstimatedTripCount() 644 return (TrueVal + (FalseVal / 2)) / FalseVal; in getLoopEstimatedTripCount() 646 return (FalseVal + (TrueVal / 2)) / TrueVal; in getLoopEstimatedTripCount()
|
| H A D | SimplifyCFG.cpp | 2392 Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse); in FoldTwoEntryPHINode() local 2395 Value *Sel = Builder.CreateSelect(IfCond, TrueVal, FalseVal, "", InsertPt); in FoldTwoEntryPHINode() 3478 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue()); in SimplifySwitchOnSelect() local 3480 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect() 3485 BasicBlock *TrueBB = SI->findCaseValue(TrueVal)->getCaseSuccessor(); in SimplifySwitchOnSelect() 3496 (uint32_t)Weights[SI->findCaseValue(TrueVal)->getSuccessorIndex()]; in SimplifySwitchOnSelect()
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 4209 SDValue TrueLow = TrueVal.getValue(0); in getCMOV() 4381 SDValue TrueVal = Op.getOperand(2); in isLowerSaturatingConditional() local 4392 SDValue KTmp = isa<ConstantSDNode>(TrueVal) ? TrueVal : FalseVal; in isLowerSaturatingConditional() 4393 V = (KTmp == TrueVal) ? FalseVal : TrueVal; in isLowerSaturatingConditional() 4449 SDValue TrueVal = Op.getOperand(2); in LowerSELECT_CC() local 4481 std::swap(TrueVal, FalseVal); in LowerSELECT_CC() 4510 std::swap(TrueVal, FalseVal); in LowerSELECT_CC() 9746 SDValue TrueVal = OtherOp; in combineSelectAndUse() local 9751 std::swap(TrueVal, FalseVal); in combineSelectAndUse() 12640 SDValue TrueVal = N->getOperand(1); in PerformCMOVCombine() local [all …]
|
| H A D | ARMISelLowering.h | 784 SDValue getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | InstructionSimplify.h | 194 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | Instruction.h | 294 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
|
| H A D | PatternMatch.h | 1277 Value *TrueVal = SI->getTrueValue(); in match() local 1281 if ((TrueVal != LHS || FalseVal != RHS) && in match() 1282 (TrueVal != RHS || FalseVal != LHS)) in match() 1285 LHS == TrueVal ? Cmp->getPredicate() : Cmp->getInversePredicate(); in match()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeFloatTypes.cpp | 2133 SDValue TrueVal = GetPromotedFloat(N->getOperand(1)); in PromoteFloatRes_SELECT() local 2136 return DAG.getNode(ISD::SELECT, SDLoc(N), TrueVal->getValueType(0), in PromoteFloatRes_SELECT() 2137 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT() 2143 SDValue TrueVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT_CC() local 2147 TrueVal.getNode()->getValueType(0), N->getOperand(0), in PromoteFloatRes_SELECT_CC() 2148 N->getOperand(1), TrueVal, FalseVal, N->getOperand(4)); in PromoteFloatRes_SELECT_CC()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 898 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in ComputeValueKnownInPredecessorsImpl() local 901 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessorsImpl() 917 KnownCond = (TrueVal != nullptr); in ComputeValueKnownInPredecessorsImpl() 921 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessorsImpl()
|
| H A D | GVN.cpp | 1904 Value *TrueVal = ConstantInt::getTrue(TrueSucc->getContext()); in processInstruction() local 1906 Changed |= propagateEquality(BranchCond, TrueVal, TrueE, true); in processInstruction()
|
| /freebsd-12.1/contrib/llvm/lib/Target/Lanai/ |
| H A D | LanaiISelLowering.cpp | 1431 SDValue TrueVal = OtherOp; in combineSelectAndUse() local 1436 std::swap(TrueVal, FalseVal); in combineSelectAndUse() 1438 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 772 if (ConstantExpr *TrueVal = dyn_cast<ConstantExpr>(V1)) { in ConstantFoldSelectInstruction() local 773 if (TrueVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction() 774 if (TrueVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction() 775 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2); in ConstantFoldSelectInstruction()
|
| H A D | Metadata.cpp | 1315 bool Instruction::extractProfMetadata(uint64_t &TrueVal, in extractProfMetadata() argument 1334 TrueVal = CITrue->getValue().getZExtValue(); in extractProfMetadata()
|
| /freebsd-12.1/contrib/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 3789 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local 3790 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in parseFunctionBody() 3791 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody() 3795 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody() 3804 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local 3805 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in parseFunctionBody() 3806 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody() 3822 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()
|
| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 1999 SDValue TrueVal = DAG.getNode(Opc, dl, VT, ShOpHi, ExtraShAmt); in LowerShiftRightParts() local 2005 SDValue Lo = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftRightParts() 2059 SDValue TrueVal = DAG.getNode(ISD::SHL, dl, VT, ShOpLo, ExtraShAmt); in LowerShiftLeftParts() local 2065 SDValue Hi = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftLeftParts()
|
| /freebsd-12.1/contrib/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.cpp | 5646 auto *TrueVal = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(0)); in combineCCMask() local 5647 if (!TrueVal) in combineCCMask() 5654 else if (CompareRHS->getZExtValue() != TrueVal->getZExtValue()) in combineCCMask() 5784 auto *TrueVal = dyn_cast<ConstantSDNode>(Select->getOperand(0)); in combineGET_CCMASK() local 5786 if (!TrueVal || !FalseVal) in combineGET_CCMASK() 5788 if (TrueVal->getZExtValue() != 0 && FalseVal->getZExtValue() == 0) in combineGET_CCMASK() 5790 else if (TrueVal->getZExtValue() == 0 && FalseVal->getZExtValue() != 0) in combineGET_CCMASK()
|