Home
last modified time | relevance | path

Searched refs:FalseVal (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp511 Value *FalseVal) { in foldSelectIntoOp() argument
515 Value *FalseVal, in foldSelectIntoOp()
518 if (!TVI || !TVI->hasOneUse() || isa<Constant>(FalseVal)) in foldSelectIntoOp()
523 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) in foldSelectIntoOp()
525 else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) in foldSelectIntoOp()
555 !computeKnownFPClass(FalseVal, FMF, fcNan, &SI).isKnownNeverNaN()) in foldSelectIntoOp()
564 BinaryOperator::Create(TVI->getOpcode(), FalseVal, NewSel); in foldSelectIntoOp()
569 if (Instruction *R = TryFoldSelectIntoOp(SI, TrueVal, FalseVal, false)) in foldSelectIntoOp()
572 if (Instruction *R = TryFoldSelectIntoOp(SI, FalseVal, TrueVal, true)) in foldSelectIntoOp()
673 Value *FalseVal, in foldSelectICmpLshrAshr() argument
[all …]
H A DInstCombineShifts.cpp600 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local
602 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
859 Value *FalseVal; in FoldShiftByConstant() local
861 m_Value(FalseVal)))) { in FoldShiftByConstant()
863 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant()
869 Value *NewShift = Builder.CreateBinOp(I.getOpcode(), FalseVal, C1); in FoldShiftByConstant()
H A DInstructionCombining.cpp1028 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() local
1035 m_Value(FalseVal))); in foldBinOpOfSelectAndCastOfSelectCondition()
1070 NewFoldedConst(true, FalseVal)); in foldBinOpOfSelectAndCastOfSelectCondition()
1076 NewFoldedConst(false, FalseVal)); in foldBinOpOfSelectAndCastOfSelectCondition()
1256 Value *FalseVal = LHSInst->getOperand(2); in matchSymmetricPair() local
1258 FalseVal == RHSInst->getOperand(1)) in matchSymmetricPair()
1259 return std::pair(TrueVal, FalseVal); in matchSymmetricPair()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp84 Value *FalseVal) { in foldSelectWithBinaryOp() argument
114 m_Specific(FalseVal)), in foldSelectWithBinaryOp()
119 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
120 return BinOpCode == BinaryOperator::Or ? TrueVal : FalseVal; in foldSelectWithBinaryOp()
4492 static Value *simplifySelectBitTest(Value *TrueVal, Value *FalseVal, Value *X, in simplifySelectBitTest() argument
4498 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
4500 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest()
4504 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
4506 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest()
4511 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
[all …]
H A DLazyValueInfo.cpp857 ValueLatticeElement &FalseVal = *OptFalseVal; in solveBlockValueSelect() local
859 if (TrueVal.isConstantRange() || FalseVal.isConstantRange()) { in solveBlockValueSelect()
861 const ConstantRange &FalseCR = FalseVal.asConstantRange(SI->getType()); in solveBlockValueSelect()
886 FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
895 FalseCR.abs(), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
902 Zero.sub(TrueCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
905 Zero.sub(FalseCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
920 FalseVal = in solveBlockValueSelect()
921 intersect(FalseVal, *getValueFromCondition(SI->getFalseValue(), Cond, in solveBlockValueSelect()
927 Result.mergeIn(FalseVal); in solveBlockValueSelect()
H A DValueTracking.cpp8081 Value *TrueVal, Value *FalseVal, in matchFastFloatClamp() argument
8089 if (CmpRHS == FalseVal) { in matchFastFloatClamp()
8090 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
8096 RHS = FalseVal; in matchFastFloatClamp()
8108 if (match(FalseVal, in matchFastFloatClamp()
8118 if (match(FalseVal, in matchFastFloatClamp()
8135 Value *TrueVal, Value *FalseVal) { in matchClamp() argument
8139 std::swap(TrueVal, FalseVal); in matchClamp()
8145 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
8150 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
[all …]
H A DIVDescriptors.cpp734 Value *FalseVal = SI->getFalseValue(); in isConditionalRdxPattern() local
737 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern()
738 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern()
742 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern()
759 if (!IPhi || IPhi != FalseVal) in isConditionalRdxPattern()
H A DInlineCost.cpp2372 Value *FalseVal = SI.getFalseValue(); in visitSelectInst() local
2377 Constant *FalseC = dyn_cast<Constant>(FalseVal); in visitSelectInst()
2379 FalseC = SimplifiedValues.lookup(FalseVal); in visitSelectInst()
2396 ConstantOffsetPtrs.lookup(FalseVal); in visitSelectInst()
2410 : (CondC->isNullValue()) ? FalseVal in visitSelectInst()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DRecordSerialization.cpp38 bool FalseVal = false; in consume() local
82 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h188 VPValue *createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal,
192 FMFs ? new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal},
194 : new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal},
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DProfDataUtils.h107 uint64_t &FalseVal);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DProfDataUtils.cpp188 uint64_t &FalseVal) { in extractBranchWeights() argument
203 FalseVal = Weights[1]; in extractBranchWeights()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DSROA.h53 using FalseVal = Bitfield::Element<bool, 1, 1>; // Low 1'th bit. global() variable
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h59 FalseVal, enumerator
H A DTGLexer.cpp359 .Case("false", tgtok::FalseVal) in LexIdentifier()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopConstrainer.cpp442 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 DInstructionSimplify.h164 Value *simplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DScalarEvolution.h1747 Value *TrueVal, Value *FalseVal);
1752 Value *FalseVal);
1759 Value *FalseVal);
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5252 SDValue ARMTargetLowering::getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, in getCMOV() argument
5256 FalseVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV()
5257 DAG.getVTList(MVT::i32, MVT::i32), FalseVal); in getCMOV()
5263 SDValue FalseLow = FalseVal.getValue(0); in getCMOV()
5264 SDValue FalseHigh = FalseVal.getValue(1); in getCMOV()
5273 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, CCR, in getCMOV()
5293 const SDValue TrueVal, const SDValue FalseVal, in isLowerSaturate() argument
5296 ((K == LHS && K == TrueVal) || (K == RHS && K == FalseVal))) || in isLowerSaturate()
5298 ((K == RHS && K == TrueVal) || (K == LHS && K == FalseVal))); in isLowerSaturate()
5391 SDValue FalseVal = Op.getOperand(3); in isLowerSaturatingConditional() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerBufferFatPointers.cpp845 Value *FalseVal = rsrcPartRoot(SI->getFalseValue()); in getPossibleRsrcRoots() local
847 Roots.insert(FalseVal); in getPossibleRsrcRoots()
850 if (isa<PHINode, SelectInst>(FalseVal)) in getPossibleRsrcRoots()
851 getPossibleRsrcRoots(cast<Instruction>(FalseVal), Roots, Seen); in getPossibleRsrcRoots()
H A DAMDGPUCodeGenPrepare.cpp1690 Value *FalseVal = I.getFalseValue(); in visitSelectInst() local
1712 auto *IIFalse = dyn_cast<IntrinsicInst>(FalseVal); in visitSelectInst()
1719 } else if (Pred == FCmpInst::FCMP_ORD && FalseVal == CmpVal && IITrue && in visitSelectInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSelectOptimize.cpp953 uint64_t &TrueVal, uint64_t &FalseVal) { in extractBranchWeights() argument
955 return extractBranchWeights(*SI.getI(), TrueVal, FalseVal); in extractBranchWeights()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1432 SDValue FalseVal = 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/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp567 Metadata *FalseVal = DisableAllLoopOptsOnLoop() local
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DCombinerHelper.h978 Register FalseVal, BuildFnTy &MatchInfo);

12