Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp424 Instruction *InstCombiner::foldSelectIntoOp(SelectInst &SI, Value *TrueVal, in foldSelectIntoOp() argument
428 if (auto *TVI = dyn_cast<BinaryOperator>(TrueVal)) { in foldSelectIntoOp()
460 if (FVI->hasOneUse() && !isa<Constant>(TrueVal)) { in foldSelectIntoOp()
463 if ((SFO & 1) && TrueVal == FVI->getOperand(0)) { in foldSelectIntoOp()
465 } else if ((SFO & 2) && TrueVal == FVI->getOperand(1)) { in foldSelectIntoOp()
481 TrueVal, NewSel); in foldSelectIntoOp()
539 static Value *foldSelectICmpLshrAshr(const ICmpInst *IC, Value *TrueVal, in foldSelectICmpLshrAshr() argument
560 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
562 if (match(TrueVal, m_LShr(m_Value(X), m_Value(Y))) && in foldSelectICmpLshrAshr()
567 bool IsExact = Ashr->isExact() && cast<Instruction>(TrueVal)->isExact(); in foldSelectICmpLshrAshr()
[all …]
DInstCombineShifts.cpp528 Value *TrueVal = SI->getTrueValue(); in canEvaluateShifted() local
530 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted()
903 Value *TrueVal; in FoldShiftByConstant() local
904 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant()
907 if (!isa<Constant>(TrueVal) && FBO->getOperand(0) == TrueVal && in FoldShiftByConstant()
914 Builder.CreateBinOp(I.getOpcode(), TrueVal, Op1); in FoldShiftByConstant()
DInstCombineAddSub.cpp1924 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
1925 if (!match(Select, m_OneUse(m_Select(m_Value(Cond), m_Value(TrueVal), in visitSub()
1928 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) in visitSub()
1933 bool OtherHandOfSubIsTrueVal = OtherHandOfSub == TrueVal; in visitSub()
1934 Value *NewSub = SubBuilder(OtherHandOfSubIsTrueVal ? FalseVal : TrueVal); in visitSub()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp72 static Value *foldSelectWithBinaryOp(Value *Cond, Value *TrueVal, in foldSelectWithBinaryOp() argument
102 if (!match(Cond, m_c_BinOp(m_c_ICmp(Pred1, m_Specific(TrueVal), in foldSelectWithBinaryOp()
108 if (X == TrueVal || X == FalseVal || Y == TrueVal || Y == FalseVal) in foldSelectWithBinaryOp()
109 return BinOpCode == BinaryOperator::Or ? TrueVal : FalseVal; in foldSelectWithBinaryOp()
3805 static Value *simplifySelectBitTest(Value *TrueVal, Value *FalseVal, Value *X, in simplifySelectBitTest() argument
3811 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
3813 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest()
3817 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
3819 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest()
3824 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest()
[all …]
DValueTracking.cpp4662 Value *TrueVal, Value *FalseVal, in matchFastFloatClamp() argument
4671 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
4676 LHS = TrueVal; in matchFastFloatClamp()
4680 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite()) in matchFastFloatClamp()
4716 Value *TrueVal, Value *FalseVal) { in matchClamp() argument
4718 if (CmpRHS != TrueVal) { in matchClamp()
4720 std::swap(TrueVal, FalseVal); in matchClamp()
4723 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) { in matchClamp()
4846 Value *TrueVal, Value *FalseVal, in matchMinMax() argument
4850 LHS = TrueVal; in matchMinMax()
[all …]
DIVDescriptors.cpp529 Value *TrueVal = SI->getTrueValue(); in isConditionalRdxPattern() local
533 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern()
534 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern()
538 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern()
539 : dyn_cast<Instruction>(TrueVal); in isConditionalRdxPattern()
DLazyValueInfo.cpp868 ValueLatticeElement TrueVal = getBlockValue(SI->getTrueValue(), BB); in solveBlockValueSelect() local
871 if (TrueVal.isOverdefined()) { in solveBlockValueSelect()
890 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect()
891 const ConstantRange &TrueCR = TrueVal.getConstantRange(); in solveBlockValueSelect()
946 TrueVal = intersect(TrueVal, in solveBlockValueSelect()
985 TrueVal = intersect(TrueVal, in solveBlockValueSelect()
994 Result.mergeIn(TrueVal, DL); in solveBlockValueSelect()
DInlineCost.cpp1573 Value *TrueVal = SI.getTrueValue(); in visitSelectInst() local
1576 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst()
1578 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst()
1596 ConstantOffsetPtrs.lookup(TrueVal); in visitSelectInst()
1602 if (auto *SROAArg = getSROAArgForValueOrNull(TrueVal)) in visitSelectInst()
1612 ? TrueVal in visitSelectInst()
DCFLGraph.h338 auto *TrueVal = Inst.getTrueValue(); in visitSelectInst() local
340 addAssignEdge(TrueVal, &Inst); in visitSelectInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.cpp4698 SDValue TrueVal, SDValue ARMcc, SDValue CCR, in getCMOV() argument
4703 TrueVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV()
4704 DAG.getVTList(MVT::i32, MVT::i32), TrueVal); in getCMOV()
4706 SDValue TrueLow = TrueVal.getValue(0); in getCMOV()
4707 SDValue TrueHigh = TrueVal.getValue(1); in getCMOV()
4718 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, CCR, in getCMOV()
4738 const SDValue TrueVal, const SDValue FalseVal, in isLowerSaturate() argument
4741 ((K == LHS && K == TrueVal) || (K == RHS && K == FalseVal))) || in isLowerSaturate()
4743 ((K == RHS && K == TrueVal) || (K == LHS && K == FalseVal))); in isLowerSaturate()
4748 const SDValue TrueVal, const SDValue FalseVal, in isUpperSaturate() argument
[all …]
DARMISelLowering.h817 SDValue getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h248 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInstructionSimplify.h205 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
DValueTracking.h647 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstruction.h317 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
DPatternMatch.h1480 Value *TrueVal = SI->getTrueValue(); in match() local
1484 if ((TrueVal != LHS || FalseVal != RHS) && in match()
1485 (TrueVal != RHS || FalseVal != LHS)) in match()
1488 LHS == TrueVal ? Cmp->getPredicate() : Cmp->getInversePredicate(); in match()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp914 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); in ComputeValueKnownInPredecessorsImpl() local
917 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessorsImpl()
933 KnownCond = (TrueVal != nullptr); in ComputeValueKnownInPredecessorsImpl()
937 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessorsImpl()
DGVN.cpp2031 Value *TrueVal = ConstantInt::getTrue(TrueSucc->getContext()); in processInstruction() local
2033 Changed |= propagateEquality(BranchCond, TrueVal, TrueE, true); in processInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp2348 SDValue TrueVal = GetPromotedFloat(N->getOperand(1)); in PromoteFloatRes_SELECT() local
2351 return DAG.getNode(ISD::SELECT, SDLoc(N), TrueVal->getValueType(0), in PromoteFloatRes_SELECT()
2352 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT()
2358 SDValue TrueVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT_CC() local
2362 TrueVal.getNode()->getValueType(0), N->getOperand(0), in PromoteFloatRes_SELECT_CC()
2363 N->getOperand(1), TrueVal, FalseVal, N->getOperand(4)); in PromoteFloatRes_SELECT_CC()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantFold.cpp774 if (ConstantExpr *TrueVal = dyn_cast<ConstantExpr>(V1)) { in ConstantFoldSelectInstruction() local
775 if (TrueVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
776 if (TrueVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
777 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2); in ConstantFoldSelectInstruction()
DMetadata.cpp1314 bool Instruction::extractProfMetadata(uint64_t &TrueVal, in extractProfMetadata() argument
1333 TrueVal = CITrue->getValue().getZExtValue(); in extractProfMetadata()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4086 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
4087 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal, &FullTy) || in parseFunctionBody()
4088 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
4092 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()
4101 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
4102 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal, &FullTy) || in parseFunctionBody()
4103 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
4119 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp2435 Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse); in FoldTwoEntryPHINode() local
2438 Value *Sel = Builder.CreateSelect(IfCond, TrueVal, FalseVal, "", InsertPt); in FoldTwoEntryPHINode()
3582 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue()); in SimplifySwitchOnSelect() local
3584 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect()
3589 BasicBlock *TrueBB = SI->findCaseValue(TrueVal)->getCaseSuccessor(); in SimplifySwitchOnSelect()
3600 (uint32_t)Weights[SI->findCaseValue(TrueVal)->getSuccessorIndex()]; in SimplifySwitchOnSelect()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp2005 SDValue TrueVal = DAG.getNode(Opc, dl, VT, ShOpHi, ExtraShAmt); in LowerShiftRightParts() local
2011 SDValue Lo = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftRightParts()
2065 SDValue TrueVal = DAG.getNode(ISD::SHL, dl, VT, ShOpLo, ExtraShAmt); in LowerShiftLeftParts() local
2071 SDValue Hi = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal); in LowerShiftLeftParts()

12