/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 424 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 …]
|
D | InstCombineShifts.cpp | 528 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()
|
D | InstCombineAddSub.cpp | 1924 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/ |
D | InstructionSimplify.cpp | 72 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 …]
|
D | ValueTracking.cpp | 4662 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 …]
|
D | IVDescriptors.cpp | 529 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()
|
D | LazyValueInfo.cpp | 868 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()
|
D | InlineCost.cpp | 1573 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()
|
D | CFLGraph.h | 338 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/ |
D | ARMISelLowering.cpp | 4698 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 …]
|
D | ARMISelLowering.h | 817 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/ |
D | Instruction.h | 248 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/ |
D | InstructionSimplify.h | 205 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
D | ValueTracking.h | 647 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/ |
D | Instruction.h | 317 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
|
D | PatternMatch.h | 1480 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/ |
D | JumpThreading.cpp | 914 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()
|
D | GVN.cpp | 2031 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/ |
D | LegalizeFloatTypes.cpp | 2348 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/ |
D | LanaiISelLowering.cpp | 1431 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/ |
D | ConstantFold.cpp | 774 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()
|
D | Metadata.cpp | 1314 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/ |
D | BitcodeReader.cpp | 4086 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/ |
D | SimplifyCFG.cpp | 2435 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/ |
D | NVPTXISelLowering.cpp | 2005 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()
|