| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 124 Value *FalseVal, Value *V, const APInt &AndMask, in foldSelectICmpAnd() argument 128 if (!match(TrueVal, m_APInt(SelTC)) || !match(FalseVal, m_APInt(SelFC))) in foldSelectICmpAnd() 496 Value *FalseVal) { in foldSelectIntoOp() argument 500 Value *FalseVal, in foldSelectIntoOp() 503 if (!TVI || !TVI->hasOneUse() || isa<Constant>(FalseVal)) in foldSelectIntoOp() 508 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) in foldSelectIntoOp() 510 else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) in foldSelectIntoOp() 537 !computeKnownFPClass(FalseVal, FMF, fcNan, &SI).isKnownNeverNaN()) in foldSelectIntoOp() 546 BinaryOperator::Create(TVI->getOpcode(), FalseVal, NewSel); in foldSelectIntoOp() 559 if (Instruction *R = TryFoldSelectIntoOp(SI, TrueVal, FalseVal, false)) in foldSelectIntoOp() [all …]
|
| H A D | InstCombineShifts.cpp | 616 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local 618 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted() 875 Value *FalseVal; in FoldShiftByConstant() local 877 m_Value(FalseVal)))) { in FoldShiftByConstant() 879 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant() 885 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), FalseVal, C1); in FoldShiftByConstant()
|
| H A D | InstructionCombining.cpp | 1056 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() local 1063 m_Value(FalseVal))); in foldBinOpOfSelectAndCastOfSelectCondition() 1098 NewFoldedConst(true, FalseVal)); in foldBinOpOfSelectAndCastOfSelectCondition() 1104 NewFoldedConst(false, FalseVal)); in foldBinOpOfSelectAndCastOfSelectCondition() 1284 Value *FalseVal = LHSInst->getOperand(2); in matchSymmetricPair() local 1286 FalseVal == RHSInst->getOperand(1)) in matchSymmetricPair() 1287 return std::pair(TrueVal, FalseVal); in matchSymmetricPair() 4357 Value *FalseVal = SelectInst->getFalseValue(); in foldFrexpOfSelect() local 4364 VarOp = FalseVal; in foldFrexpOfSelect() 4366 } else if (match(FalseVal, m_APFloat(ConstVal))) { in foldFrexpOfSelect() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 4502 static Value *simplifySelectBitTest(Value *TrueVal, Value *FalseVal, Value *X, in simplifySelectBitTest() argument 4508 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 4510 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest() 4514 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 4516 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest() 4521 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 4526 return TrueWhenUnset ? TrueVal : FalseVal; in simplifySelectBitTest() 4531 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 4534 if (!TrueWhenUnset && cast<PossiblyDisjointInst>(FalseVal)->isDisjoint()) in simplifySelectBitTest() 4536 return TrueWhenUnset ? TrueVal : FalseVal; in simplifySelectBitTest() [all …]
|
| H A D | LazyValueInfo.cpp | 817 ValueLatticeElement &FalseVal = *OptFalseVal; in solveBlockValueSelect() local 819 if (TrueVal.isConstantRange() || FalseVal.isConstantRange()) { in solveBlockValueSelect() 821 const ConstantRange &FalseCR = FalseVal.asConstantRange(SI->getType()); in solveBlockValueSelect() 846 FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 855 FalseCR.abs(), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 862 Zero.sub(TrueCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 865 Zero.sub(FalseCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 880 FalseVal = in solveBlockValueSelect() 881 FalseVal.intersect(*getValueFromCondition(SI->getFalseValue(), Cond, in solveBlockValueSelect() 887 Result.mergeIn(FalseVal); in solveBlockValueSelect()
|
| H A D | ValueTracking.cpp | 8187 Value *TrueVal, Value *FalseVal, in matchFastFloatClamp() argument 8195 if (CmpRHS == FalseVal) { in matchFastFloatClamp() 8196 std::swap(TrueVal, FalseVal); in matchFastFloatClamp() 8202 RHS = FalseVal; in matchFastFloatClamp() 8214 if (match(FalseVal, m_OrdOrUnordFMin(m_Specific(CmpLHS), m_APFloat(FC2))) && in matchFastFloatClamp() 8222 if (match(FalseVal, m_OrdOrUnordFMax(m_Specific(CmpLHS), m_APFloat(FC2))) && in matchFastFloatClamp() 8237 Value *TrueVal, Value *FalseVal) { in matchClamp() argument 8241 std::swap(TrueVal, FalseVal); in matchClamp() 8247 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() 8252 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() [all …]
|
| H A D | IVDescriptors.cpp | 860 Value *FalseVal = SI->getFalseValue(); in isConditionalRdxPattern() local 863 if ((isa<PHINode>(TrueVal) && isa<PHINode>(FalseVal)) || in isConditionalRdxPattern() 864 (!isa<PHINode>(TrueVal) && !isa<PHINode>(FalseVal))) in isConditionalRdxPattern() 867 Instruction *I1 = isa<PHINode>(TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern() 884 if (!IPhi || IPhi != FalseVal) in isConditionalRdxPattern()
|
| H A D | InlineCost.cpp | 2574 Value *FalseVal = SI.getFalseValue(); in visitSelectInst() local 2577 Constant *FalseC = getDirectOrSimplifiedValue<Constant>(FalseVal); in visitSelectInst() 2593 ConstantOffsetPtrs.lookup(FalseVal); in visitSelectInst() 2607 : (CondC->isNullValue()) ? FalseVal in visitSelectInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | RecordSerialization.cpp | 38 bool FalseVal = false; in consume() local 82 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ProfDataUtils.h | 119 uint64_t &FalseVal);
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ProfDataUtils.cpp | 194 uint64_t &FalseVal) { in extractBranchWeights() argument 209 FalseVal = Weights[1]; in extractBranchWeights()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorizationPlanner.h | 220 createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal, 224 FMFs ? new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal}, 226 : new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal},
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
| H A D | SROA.h | 53 using FalseVal = Bitfield::Element<bool, 1, 1>; // Low 1'th bit. global() variable
|
| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TGLexer.h | 59 FalseVal, enumerator
|
| H A D | TGLexer.cpp | 392 .Case("false", tgtok::FalseVal) in LexIdentifier()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | DFAJumpThreading.cpp | 298 Value *FalseVal = SI->getFalseValue(); in unfold() local 304 SIUse->getType(), 1, Twine(FalseVal->getName(), ".si.unfold.phi"), in unfold() 307 NewPhiF->addIncoming(FalseVal, NewBlockT); in unfold() 311 if (auto *FalseSi = dyn_cast<SelectInst>(FalseVal)) in unfold()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopConstrainer.cpp | 442 Metadata *FalseVal = in DisableAllLoopOptsOnLoop() local 446 {MDString::get(Context, "llvm.loop.vectorize.enable"), FalseVal}); in DisableAllLoopOptsOnLoop() 451 {MDString::get(Context, "llvm.loop.distribute.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InstructionSimplify.h | 168 LLVM_ABI Value *simplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
| H A D | ScalarEvolution.h | 1838 Value *TrueVal, Value *FalseVal); 1843 Value *FalseVal); 1850 Value *FalseVal);
|
| H A D | ValueTracking.h | 905 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXISelLowering.cpp | 2296 SDValue FalseVal = DAG.getNode(ISD::OR, dl, VT, Tmp1, Tmp2); in LowerShiftRightParts() local 2303 SDValue Lo = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftRightParts() 2356 SDValue FalseVal = DAG.getNode(ISD::OR, dl, VT, Tmp1, Tmp2); in LowerShiftLeftParts() local 2363 SDValue Hi = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftLeftParts() 2848 SDValue FalseVal = Op->getOperand(2); in lowerSELECT() local 2853 FalseVal.getOpcode() == ISD::TRUNCATE) { in lowerSELECT() 2855 FalseVal = FalseVal.getOperand(0); in lowerSELECT() 2857 EVT VT = TrueVal.getSimpleValueType().bitsLE(FalseVal.getSimpleValueType()) in lowerSELECT() 2859 : FalseVal.getValueType(); in lowerSELECT() 2861 FalseVal = DAG.getAnyExtOrTrunc(FalseVal, DL, VT); in lowerSELECT() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 5308 SDValue ARMTargetLowering::getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, in getCMOV() argument 5312 FalseVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV() 5313 DAG.getVTList(MVT::i32, MVT::i32), FalseVal); in getCMOV() 5319 SDValue FalseLow = FalseVal.getValue(0); in getCMOV() 5320 SDValue FalseHigh = FalseVal.getValue(1); in getCMOV() 5329 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, Flags); in getCMOV() 5347 const SDValue TrueVal, const SDValue FalseVal, in isLowerSaturate() argument 5350 ((K == LHS && K == TrueVal) || (K == RHS && K == FalseVal))) || in isLowerSaturate() 5352 ((K == RHS && K == TrueVal) || (K == LHS && K == FalseVal))); in isLowerSaturate() 5445 SDValue FalseVal = Op.getOperand(3); in isLowerSaturatingConditional() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiISelLowering.cpp | 1386 SDValue FalseVal = in combineSelectAndUse() local 1390 std::swap(TrueVal, FalseVal); in combineSelectAndUse() 1392 return DAG.getNode(ISD::SELECT, SDLoc(N), VT, CCOp, TrueVal, FalseVal); in combineSelectAndUse()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 1069 uint64_t &TrueVal, uint64_t &FalseVal) { in extractBranchWeights() argument 1071 return extractBranchWeights(*SI.getI(), TrueVal, FalseVal); in extractBranchWeights()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULowerBufferFatPointers.cpp | 1455 Value *FalseVal = rsrcPartRoot(SI->getFalseValue()); in getPossibleRsrcRoots() local 1457 Roots.insert(FalseVal); in getPossibleRsrcRoots() 1460 if (isa<PHINode, SelectInst>(FalseVal)) in getPossibleRsrcRoots() 1461 getPossibleRsrcRoots(cast<Instruction>(FalseVal), Roots, Seen); in getPossibleRsrcRoots()
|