Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp425 Value *FalseVal) { in foldSelectIntoOp() argument
429 if (TVI->hasOneUse() && !isa<Constant>(FalseVal)) { in foldSelectIntoOp()
432 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) { in foldSelectIntoOp()
434 } else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) { in foldSelectIntoOp()
450 FalseVal, NewSel); in foldSelectIntoOp()
459 if (auto *FVI = dyn_cast<BinaryOperator>(FalseVal)) { in foldSelectIntoOp()
540 Value *FalseVal, in foldSelectICmpLshrAshr() argument
560 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr()
563 match(FalseVal, m_AShr(m_Specific(X), m_Specific(Y))) && in foldSelectICmpLshrAshr()
565 const auto *Ashr = cast<Instruction>(FalseVal); in foldSelectICmpLshrAshr()
[all …]
DInstCombineShifts.cpp529 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local
531 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
884 Value *FalseVal; in FoldShiftByConstant() local
886 m_Value(FalseVal)))) { in FoldShiftByConstant()
888 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant()
895 Builder.CreateBinOp(I.getOpcode(), FalseVal, Op1); in FoldShiftByConstant()
DInstCombineAddSub.cpp1924 Value *Cond, *TrueVal, *FalseVal; in visitSub() local
1926 m_Value(FalseVal))))) in visitSub()
1928 if (OtherHandOfSub != TrueVal && OtherHandOfSub != FalseVal) 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.cpp73 Value *FalseVal) { in foldSelectWithBinaryOp() argument
103 m_Specific(FalseVal)), 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
4670 if (CmpRHS == FalseVal) { in matchFastFloatClamp()
4671 std::swap(TrueVal, FalseVal); in matchFastFloatClamp()
4677 RHS = FalseVal; in matchFastFloatClamp()
4689 if (match(FalseVal, in matchFastFloatClamp()
4699 if (match(FalseVal, in matchFastFloatClamp()
4716 Value *TrueVal, Value *FalseVal) { in matchClamp() argument
4720 std::swap(TrueVal, FalseVal); in matchClamp()
4726 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
4731 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
[all …]
DLazyValueInfo.cpp882 ValueLatticeElement FalseVal = getBlockValue(SI->getFalseValue(), BB); in solveBlockValueSelect() local
885 if (FalseVal.isOverdefined()) { in solveBlockValueSelect()
890 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect()
892 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect()
948 FalseVal = intersect(FalseVal, in solveBlockValueSelect()
977 FalseVal = intersect(FalseVal, in solveBlockValueSelect()
995 Result.mergeIn(FalseVal, DL); in solveBlockValueSelect()
DIVDescriptors.cpp530 Value *FalseVal = SI->getFalseValue(); 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()
DInlineCost.cpp1574 Value *FalseVal = SI.getFalseValue(); in visitSelectInst() local
1579 Constant *FalseC = dyn_cast<Constant>(FalseVal); in visitSelectInst()
1581 FalseC = SimplifiedValues.lookup(FalseVal); in visitSelectInst()
1598 ConstantOffsetPtrs.lookup(FalseVal); in visitSelectInst()
1613 : (CondC->isNullValue()) ? FalseVal : nullptr; in visitSelectInst()
DCFLGraph.h339 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local
341 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DRecordSerialization.cpp38 bool FalseVal = false; in consume() local
82 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
/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/lib/Target/ARM/
DARMISelLowering.cpp4697 SDValue ARMTargetLowering::getCMOV(const SDLoc &dl, EVT VT, SDValue FalseVal, in getCMOV() argument
4701 FalseVal = DAG.getNode(ARMISD::VMOVRRD, dl, in getCMOV()
4702 DAG.getVTList(MVT::i32, MVT::i32), FalseVal); in getCMOV()
4708 SDValue FalseLow = FalseVal.getValue(0); in getCMOV()
4709 SDValue FalseHigh = FalseVal.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-10.0/llvm/include/llvm/IR/
DInstruction.h317 bool extractProfMetadata(uint64_t &TrueVal, uint64_t &FalseVal) const;
DPatternMatch.h1481 Value *FalseVal = SI->getFalseValue(); in match() local
1484 if ((TrueVal != LHS || FalseVal != RHS) && in match()
1485 (TrueVal != RHS || FalseVal != LHS)) in match()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp419 Metadata *FalseVal = in DisableAllLoopOptsOnLoop() local
423 {MDString::get(Context, "llvm.loop.vectorize.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
428 {MDString::get(Context, "llvm.loop.distribute.enable"), FalseVal}); in DisableAllLoopOptsOnLoop()
DJumpThreading.cpp915 Constant *FalseVal = getKnownConstant(SI->getFalseValue(), Preference); in ComputeValueKnownInPredecessorsImpl() local
917 if ((TrueVal || FalseVal) && in ComputeValueKnownInPredecessorsImpl()
937 if (Constant *Val = KnownCond ? TrueVal : FalseVal) in ComputeValueKnownInPredecessorsImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantFold.cpp779 if (ConstantExpr *FalseVal = dyn_cast<ConstantExpr>(V2)) { in ConstantFoldSelectInstruction() local
780 if (FalseVal->getOpcode() == Instruction::Select) in ConstantFoldSelectInstruction()
781 if (FalseVal->getOperand(0) == Cond) in ConstantFoldSelectInstruction()
782 return ConstantExpr::getSelect(Cond, V1, FalseVal->getOperand(2)); in ConstantFoldSelectInstruction()
DMetadata.cpp1315 uint64_t &FalseVal) const { in extractProfMetadata()
1334 FalseVal = CIFalse->getValue().getZExtValue(); in extractProfMetadata()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp2436 Value *FalseVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfTrue); in FoldTwoEntryPHINode() local
2438 Value *Sel = Builder.CreateSelect(IfCond, TrueVal, FalseVal, "", InsertPt); in FoldTwoEntryPHINode()
3583 ConstantInt *FalseVal = dyn_cast<ConstantInt>(Select->getFalseValue()); in SimplifySwitchOnSelect() local
3584 if (!TrueVal || !FalseVal) in SimplifySwitchOnSelect()
3590 BasicBlock *FalseBB = SI->findCaseValue(FalseVal)->getCaseSuccessor(); in SimplifySwitchOnSelect()
3602 (uint32_t)Weights[SI->findCaseValue(FalseVal)->getSuccessorIndex()]; in SimplifySwitchOnSelect()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp2349 SDValue FalseVal = GetPromotedFloat(N->getOperand(2)); in PromoteFloatRes_SELECT() local
2352 N->getOperand(0), TrueVal, FalseVal); in PromoteFloatRes_SELECT()
2359 SDValue FalseVal = GetPromotedFloat(N->getOperand(3)); in PromoteFloatRes_SELECT_CC() local
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/Bitcode/Reader/
DBitcodeReader.cpp4086 Value *TrueVal, *FalseVal, *Cond; in parseFunctionBody() local
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
4103 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) || in parseFunctionBody()
4119 I = SelectInst::Create(Cond, TrueVal, FalseVal); in parseFunctionBody()

12