Home
last modified time | relevance | path

Searched refs:TrueVal (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp569 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
730 if (match(TrueVal, m_Zero())) { in canonicalizeSaturatedSubtract()
732 std::swap(TrueVal, FalseVal); in canonicalizeSaturatedSubtract()
904 Value *ValueOnZero = TrueVal; in foldSelectCttzCtlz()
989 CmpLHS = TrueVal; in adjustMinMax()
1002 CmpLHS = TrueVal; in adjustMinMax()
1020 std::swap(FalseVal, TrueVal); in adjustMinMax()
1024 Sel.setOperand(1, TrueVal); in adjustMinMax()
1143 if (TrueVal != CmpLHS && in foldSelectValueEquivalence()
1165 if (TrueVal != CmpRHS && in foldSelectValueEquivalence()
[all …]
H A DInstCombineShifts.cpp511 Value *TrueVal = SI->getTrueValue(); in canEvaluateShifted() local
513 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted()
869 Value *TrueVal; in FoldShiftByConstant() local
870 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant()
873 if (!isa<Constant>(TrueVal) && FBO->getOperand(0) == TrueVal && in FoldShiftByConstant()
880 Builder.CreateBinOp(I.getOpcode(), TrueVal, Op1); in FoldShiftByConstant()
H A DInstCombineAddSub.cpp2001 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
2002 if (!match(Select, m_OneUse(m_Select(m_Value(Cond), m_Value(TrueVal), in visitSub()
2005 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) in visitSub()
2010 bool OtherHandOfSubIsTrueVal = OtherHandOfSub == TrueVal; in visitSub()
2011 Value *NewSub = SubBuilder(OtherHandOfSubIsTrueVal ? FalseVal : TrueVal); in visitSub()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp114 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
4080 std::swap(TrueVal, FalseVal); in simplifySelectWithICmpCond()
4135 if (match(TrueVal, in simplifySelectWithICmpCond()
4154 TrueVal || in simplifySelectWithICmpCond()
4157 TrueVal) in simplifySelectWithICmpCond()
4224 return TrueVal; in SimplifySelectInst()
4239 if (TrueVal == FalseVal) in SimplifySelectInst()
4240 return TrueVal; in SimplifySelectInst()
4247 if (isa<PoisonValue>(TrueVal) || in SimplifySelectInst()
4248 (Q.isUndefValue(TrueVal) && in SimplifySelectInst()
[all …]
H A DValueTracking.cpp5580 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
5585 LHS = TrueVal; in matchFastFloatClamp()
5627 if (CmpRHS != TrueVal) { in matchClamp()
5629 std::swap(TrueVal, FalseVal); in matchClamp()
5774 LHS = TrueVal; in matchMinMax()
5816 if (match(TrueVal, m_Zero()) && in matchMinMax()
5888 OutputZeroVal = TrueVal; in matchSelectPattern()
6001 if (match(TrueVal, MaybeSExtCmpLHS)) { in matchSelectPattern()
6004 LHS = TrueVal; in matchSelectPattern()
6027 RHS = TrueVal; in matchSelectPattern()
[all …]
H A DLazyValueInfo.cpp802 ValueLatticeElement &TrueVal = *OptTrueVal; in solveBlockValueSelect() local
810 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect()
811 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
835 ResultCR, TrueVal.isConstantRangeIncludingUndef() | in solveBlockValueSelect()
842 TrueCR.abs(), TrueVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect()
863 TrueVal = intersect(TrueVal, in solveBlockValueSelect()
868 ValueLatticeElement Result = TrueVal; in solveBlockValueSelect()
H A DIVDescriptors.cpp568 Value *TrueVal = SI->getTrueValue(); in isConditionalRdxPattern() local
572 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern()
573 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern()
577 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern()
578 : dyn_cast<Instruction>(TrueVal); in isConditionalRdxPattern()
H A DCFLGraph.h345 auto *TrueVal = Inst.getTrueValue(); in visitSelectInst() local
347 addAssignEdge(TrueVal, &Inst); in visitSelectInst()
H A DInlineCost.cpp2132 Value *TrueVal = SI.getTrueValue(); in visitSelectInst() local
2135 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst()
2137 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst()
2155 ConstantOffsetPtrs.lookup(TrueVal); in visitSelectInst()
2161 if (auto *SROAArg = getSROAArgForValueOrNull(TrueVal)) in visitSelectInst()
2170 Value *SelectedV = CondC->isAllOnesValue() ? TrueVal in visitSelectInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h148 VPValue *createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal) { in createSelect() argument
149 return createNaryOp(Instruction::Select, {Cond, TrueVal, FalseVal}); in createSelect()
/freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h61 TrueVal, FalseVal, enumerator
H A DTGLexer.cpp356 .Case("true", tgtok::TrueVal) in LexIdentifier()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5278 SDValue KTmp = isa<ConstantSDNode>(TrueVal) ? TrueVal : FalseVal; in isLowerSaturatingConditional()
5279 V = (KTmp == TrueVal) ? FalseVal : TrueVal; in isLowerSaturatingConditional()
5356 std::swap(TrueVal, FalseVal); in LowerSELECT_CC()
5381 FalseVal = TrueVal; in LowerSELECT_CC()
12151 SDValue TrueVal = OtherOp; in combineSelectAndUse() local
12156 std::swap(TrueVal, FalseVal); in combineSelectAndUse()
12766 SDValue TrueVal; in PerformSELECTCombine() local
12775 TrueVal = N->getOperand(1); in PerformSELECTCombine()
12781 TrueVal = N->getOperand(2); in PerformSELECTCombine()
12816 switch (TrueVal->getOpcode()) { in PerformSELECTCombine()
[all …]
H A DARMISelLowering.h942 SDValue getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h247 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DValueTracking.h729 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h361 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
H A DPatternMatch.h1788 auto *TrueVal = SI->getTrueValue(); in match() local
1792 if ((TrueVal != LHS || FalseVal != RHS) && in match()
1793 (TrueVal != RHS || FalseVal != LHS)) in match()
1796 LHS == TrueVal ? Cmp->getPredicate() : Cmp->getInversePredicate(); in match()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp1431 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-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp604 if (ConstantExpr *TrueVal = dyn_cast<ConstantExpr>(V1)) { in ConstantFoldSelectInstruction() local
605 if (TrueVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
606 if (TrueVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
607 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2); in ConstantFoldSelectInstruction()
H A DMetadata.cpp1396 bool Instruction::extractProfMetadata(uint64_t &TrueVal, in extractProfMetadata() argument
1415 TrueVal = CITrue->getValue().getZExtValue(); in extractProfMetadata()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp953 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in computeValueKnownInPredecessorsImpl() local
956 if ((TrueVal || FalseVal) && in computeValueKnownInPredecessorsImpl()
972 KnownCond = (TrueVal != nullptr); in computeValueKnownInPredecessorsImpl()
976 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in computeValueKnownInPredecessorsImpl()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeFloatTypes.cpp2482 SDValue TrueVal = GetPromotedFloat(N->getOperand(1)); in PromoteFloatRes_SELECT() local
2485 return DAG.getNode(ISD::SELECT, SDLoc(N), TrueVal->getValueType(0), in PromoteFloatRes_SELECT()
2486 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT()
2492 SDValue TrueVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT_CC() local
2496 TrueVal.getNode()->getValueType(0), N->getOperand(0), in PromoteFloatRes_SELECT_CC()
2497 N->getOperand(1), TrueVal, FalseVal, N->getOperand(4)); in PromoteFloatRes_SELECT_CC()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4251 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
4252 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in parseFunctionBody()
4253 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
4257 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()
4266 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
4267 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || in parseFunctionBody()
4268 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
4284 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp2888 Value *TrueVal = PN->getIncomingValueForBlock(IfTrue); in FoldTwoEntryPHINode() local
2891 Value *Sel = Builder.CreateSelect(IfCond, TrueVal, FalseVal, "", DomBI); in FoldTwoEntryPHINode()
3957 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue()); in SimplifySwitchOnSelect() local
3959 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect()
3964 BasicBlock *TrueBB = SI->findCaseValue(TrueVal)->getCaseSuccessor(); in SimplifySwitchOnSelect()
3975 (uint32_t)Weights[SI->findCaseValue(TrueVal)->getSuccessorIndex()]; in SimplifySwitchOnSelect()

12