Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp644 std::swap(TrueVal, FalseVal); in canonicalizeSaturatedSubtract()
646 if (!match(FalseVal, m_Zero())) in canonicalizeSaturatedSubtract()
701 Value *Count = FalseVal; in foldSelectCttzCtlz()
791 CmpLHS = FalseVal; in adjustMinMax()
804 CmpLHS = FalseVal; in adjustMinMax()
818 std::swap(FalseVal, TrueVal); in adjustMinMax()
823 Sel.setOperand(2, FalseVal); in adjustMinMax()
1649 SI.setOperand(1, FalseVal); in visitSelectInst()
1671 if (match(FalseVal, m_One())) { in visitSelectInst()
1681 if (CondVal == FalseVal) in visitSelectInst()
[all …]
H A DInstCombineShifts.cpp176 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local
178 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
549 Value *FalseVal; in FoldShiftByConstant() local
551 m_Value(FalseVal)))) { in FoldShiftByConstant()
553 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant()
560 Builder.CreateBinOp(I.getOpcode(), FalseVal, Op1); in FoldShiftByConstant()
H A DInstCombineAddSub.cpp1569 Value *FalseVal = SI->getFalseValue(); in visitSub() local
1570 SI->setTrueValue(FalseVal); in visitSub()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp4527 if (CmpRHS == FalseVal) { in matchFastFloatClamp()
4528 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
4534 RHS = FalseVal; in matchFastFloatClamp()
4546 if (match(FalseVal, in matchFastFloatClamp()
4556 if (match(FalseVal, in matchFastFloatClamp()
4577 std::swap(TrueVal, FalseVal); in matchClamp()
4708 RHS = FalseVal; in matchMinMax()
4731 if (match(FalseVal, m_Zero()) && in matchMinMax()
4812 OutputZeroVal = FalseVal; in matchSelectPattern()
4926 RHS = FalseVal; in matchSelectPattern()
[all …]
H A DInstructionSimplify.cpp104 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
3943 return FalseVal; in simplifySelectWithICmpCond()
3945 FalseVal || in simplifySelectWithICmpCond()
3947 FalseVal) in simplifySelectWithICmpCond()
3948 return FalseVal; in simplifySelectWithICmpCond()
3951 FalseVal || in simplifySelectWithICmpCond()
3953 FalseVal) in simplifySelectWithICmpCond()
4004 return isa<Constant>(FalseVal) ? FalseVal : TrueVal; in SimplifySelectInst()
4013 return FalseVal; in SimplifySelectInst()
4017 if (TrueVal == FalseVal) in SimplifySelectInst()
[all …]
H A DLazyValueInfo.cpp859 ValueLatticeElement FalseVal = getBlockValue(SI->getFalseValue(), BB); in solveBlockValueSelect() local
862 if (FalseVal.isOverdefined()) { in solveBlockValueSelect()
867 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect()
869 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
904 FalseVal = intersect(FalseVal, in solveBlockValueSelect()
933 FalseVal = intersect(FalseVal, in solveBlockValueSelect()
951 Result.mergeIn(FalseVal, DL); in solveBlockValueSelect()
H A DIVDescriptors.cpp525 Value *FalseVal = SI->getFalseValue(); 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()
H A DCFLGraph.h337 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local
339 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
H A DInlineCost.cpp1330 Value *FalseVal = SI.getFalseValue(); in visitSelectInst() local
1335 Constant *FalseC = dyn_cast<Constant>(FalseVal); in visitSelectInst()
1337 FalseC = SimplifiedValues.lookup(FalseVal); in visitSelectInst()
1354 ConstantOffsetPtrs.lookup(FalseVal); in visitSelectInst()
1371 : (CondC->isNullValue()) ? FalseVal : nullptr; in visitSelectInst()
/freebsd-12.1/contrib/llvm/lib/DebugInfo/CodeView/
H A DRecordSerialization.cpp39 bool FalseVal = false; in consume() local
83 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp634 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 DSimplifyCFG.cpp2393 Value *FalseVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfTrue); in FoldTwoEntryPHINode() local
2395 Value *Sel = Builder.CreateSelect(IfCond, TrueVal, FalseVal, "", InsertPt); in FoldTwoEntryPHINode()
3479 ConstantInt *FalseVal = dyn_cast<ConstantInt>(Select->getFalseValue()); in SimplifySwitchOnSelect() local
3480 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect()
3486 BasicBlock *FalseBB = SI->findCaseValue(FalseVal)->getCaseSuccessor(); in SimplifySwitchOnSelect()
3498 (uint32_t)Weights[SI->findCaseValue(FalseVal)->getSuccessorIndex()]; in SimplifySwitchOnSelect()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h194 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp4382 SDValue FalseVal = Op.getOperand(3); in isLowerSaturatingConditional() local
4450 SDValue FalseVal = Op.getOperand(3); in LowerSELECT_CC() local
4481 std::swap(TrueVal, FalseVal); in LowerSELECT_CC()
4510 std::swap(TrueVal, FalseVal); in LowerSELECT_CC()
9751 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
12639 SDValue FalseVal = N->getOperand(0); in PerformCMOVCombine() local
12670 if (CC == ARMCC::NE && FalseVal == RHS && FalseVal != LHS) { in PerformCMOVCombine()
12699 if (isNullConstant(FalseVal)) { in PerformCMOVCombine()
12738 FalseVal = Sub; in PerformCMOVCombine()
12753 FalseVal = Sub; in PerformCMOVCombine()
[all …]
H A DARMISelLowering.h784 SDValue getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DInstruction.h294 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
H A DPatternMatch.h1278 Value *FalseVal = SI->getFalseValue(); in match() local
1281 if ((TrueVal != LHS || FalseVal != RHS) && in match()
1282 (TrueVal != RHS || FalseVal != LHS)) in match()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp414 Metadata *FalseVal = in DisableAllLoopOptsOnLoop() local
418 {MDString::get(Context, "llvm.loop.vectorize.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
423 {MDString::get(Context, "llvm.loop.distribute.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
H A DJumpThreading.cpp899 Constant *FalseVal = getKnownConstant(SI->getFalseValue(), Preference); in ComputeValueKnownInPredecessorsImpl() local
901 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessorsImpl()
921 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessorsImpl()
H A DGVN.cpp1908 Value *FalseVal = ConstantInt::getFalse(FalseSucc->getContext()); in processInstruction() local
1910 Changed |= propagateEquality(BranchCond, FalseVal, FalseE, true); in processInstruction()
/freebsd-12.1/contrib/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-12.1/contrib/llvm/lib/IR/
H A DConstantFold.cpp777 if (ConstantExpr *FalseVal = dyn_cast<ConstantExpr>(V2)) { in ConstantFoldSelectInstruction() local
778 if (FalseVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
779 if (FalseVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
780 return ConstantExpr::getSelect(Cond, V1, FalseVal->getOperand(2)); in ConstantFoldSelectInstruction()
H A DMetadata.cpp1316 uint64_t &FalseVal) const { in extractProfMetadata()
1335 FalseVal = CIFalse->getValue().getZExtValue(); in extractProfMetadata()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeFloatTypes.cpp2134 SDValue FalseVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT() local
2137 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT()
2144 SDValue FalseVal = GetPromotedFloat(N->getOperand(3)); in PromoteFloatRes_SELECT_CC() local
2148 N->getOperand(1), TrueVal, FalseVal, N->getOperand(4)); in PromoteFloatRes_SELECT_CC()
/freebsd-12.1/contrib/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp3789 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
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
3806 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
3822 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()

12