/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 230 Value *FalseVal) { in FoldSelectIntoOp() argument 235 !isa<Constant>(FalseVal)) { in FoldSelectIntoOp() 238 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) { in FoldSelectIntoOp() 240 } else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) { in FoldSelectIntoOp() 254 FalseVal, NewSel); in FoldSelectIntoOp() 263 if (Instruction *FVI = dyn_cast<Instruction>(FalseVal)) { in FoldSelectIntoOp() 310 Value *FalseVal, in foldSelectICmpAndOr() argument 329 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr() 331 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr() 337 Value *Y = OrOnFalseVal ? TrueVal : FalseVal; in foldSelectICmpAndOr() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 425 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 …]
|
D | InstCombineShifts.cpp | 529 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()
|
/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | subtract-of-one-hand-of-select.ll | 5 ; sub (select %Cond, %TrueVal, %FalseVal), %Op1 7 ; select %Cond, (sub %TrueVal, %Op1), (sub %FalseVal, %Op1) 13 define i8 @t0_sub_of_trueval(i1 %c, i8 %Op1, i8 %FalseVal) { 19 %o = select i1 %c, i8 %Op1, i8 %FalseVal, !prof !0 ; while there, ensure preservation of prof md 36 define <2 x i8> @t2_vec(i1 %c, <2 x i8> %Op1, <2 x i8> %FalseVal) { 42 %o = select i1 %c, <2 x i8> %Op1, <2 x i8> %FalseVal 51 define i8 @n3_extrause(i1 %c, i8 %Op1, i8 %FalseVal) { 58 %o = select i1 %c, i8 %Op1, i8 %FalseVal 66 define i8 @n4_wrong_hands(i1 %c, i8 %TrueVal, i8 %FalseVal, i8 %Op1) { 72 %o = select i1 %c, i8 %TrueVal, i8 %FalseVal ; none of the hands is %Op1
|
D | subtract-from-one-hand-of-select.ll | 5 ; sub %Op0, (select %Cond, %TrueVal, %FalseVal) 7 ; select %Cond, (sub %Op0, %TrueVal), (sub %Op0, %FalseVal) 13 define i8 @t0_sub_from_trueval(i1 %c, i8 %Op0, i8 %FalseVal) { 19 %o = select i1 %c, i8 %Op0, i8 %FalseVal, !prof !0 ; while there, ensure preservation of prof md 36 define <2 x i8> @t2_vec(i1 %c, <2 x i8> %Op0, <2 x i8> %FalseVal) { 42 %o = select i1 %c, <2 x i8> %Op0, <2 x i8> %FalseVal 51 define i8 @n3_extrause(i1 %c, i8 %Op0, i8 %FalseVal) { 58 %o = select i1 %c, i8 %Op0, i8 %FalseVal 66 define i8 @n4_wrong_hands(i1 %c, i8 %TrueVal, i8 %FalseVal, i8 %Op0) { 72 %o = select i1 %c, i8 %TrueVal, i8 %FalseVal ; none of the hands is %Op0
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 403 Value *FalseVal) { in foldSelectIntoOp() argument 407 if (TVI->hasOneUse() && !isa<Constant>(FalseVal)) { in foldSelectIntoOp() 410 if ((SFO & 1) && FalseVal == TVI->getOperand(0)) { in foldSelectIntoOp() 412 } else if ((SFO & 2) && FalseVal == TVI->getOperand(1)) { in foldSelectIntoOp() 429 FalseVal, NewSel); in foldSelectIntoOp() 438 if (auto *FVI = dyn_cast<BinaryOperator>(FalseVal)) { in foldSelectIntoOp() 520 Value *FalseVal, in foldSelectICmpLshrAshr() argument 540 std::swap(TrueVal, FalseVal); in foldSelectICmpLshrAshr() 543 match(FalseVal, m_AShr(m_Specific(X), m_Specific(Y))) && in foldSelectICmpLshrAshr() 545 const auto *Ashr = cast<Instruction>(FalseVal); in foldSelectICmpLshrAshr() [all …]
|
D | InstCombineShifts.cpp | 506 Value *FalseVal = SI->getFalseValue(); in canEvaluateShifted() local 508 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted() 844 Value *FalseVal; in FoldShiftByConstant() local 846 m_Value(FalseVal)))) { in FoldShiftByConstant() 848 if (!isa<Constant>(FalseVal) && TBO->getOperand(0) == FalseVal && in FoldShiftByConstant() 855 Builder.CreateBinOp(I.getOpcode(), FalseVal, Op1); in FoldShiftByConstant()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 73 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 …]
|
D | ValueTracking.cpp | 4662 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 …]
|
D | LazyValueInfo.cpp | 882 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()
|
D | IVDescriptors.cpp | 530 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()
|
D | CFLGraph.h | 339 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local 341 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 73 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() 3927 static Value *simplifySelectBitTest(Value *TrueVal, Value *FalseVal, Value *X, in simplifySelectBitTest() argument 3933 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 3935 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest() 3939 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 3941 return TrueWhenUnset ? FalseVal : TrueVal; in simplifySelectBitTest() 3946 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() [all …]
|
D | LazyValueInfo.cpp | 813 ValueLatticeElement &FalseVal = *OptFalseVal; in solveBlockValueSelect() local 817 if (FalseVal.isOverdefined()) in solveBlockValueSelect() 820 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect() 822 const ConstantRange &FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect() 846 FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 855 FalseCR.abs(), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 862 Zero.sub(TrueCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 865 Zero.sub(FalseCR.abs()), FalseVal.isConstantRangeIncludingUndef()); in solveBlockValueSelect() 875 FalseVal = intersect(FalseVal, in solveBlockValueSelect() 904 FalseVal = intersect(FalseVal, in solveBlockValueSelect() [all …]
|
D | ValueTracking.cpp | 5268 Value *TrueVal, Value *FalseVal, in matchFastFloatClamp() argument 5276 if (CmpRHS == FalseVal) { in matchFastFloatClamp() 5277 std::swap(TrueVal, FalseVal); in matchFastFloatClamp() 5283 RHS = FalseVal; in matchFastFloatClamp() 5295 if (match(FalseVal, in matchFastFloatClamp() 5305 if (match(FalseVal, in matchFastFloatClamp() 5322 Value *TrueVal, Value *FalseVal) { in matchClamp() argument 5326 std::swap(TrueVal, FalseVal); in matchClamp() 5332 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() 5337 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() [all …]
|
D | IVDescriptors.cpp | 532 Value *FalseVal = SI->getFalseValue(); in isConditionalRdxPattern() local 535 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern() 536 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern() 540 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern()
|
D | CFLGraph.h | 339 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local 341 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
D | RecordSerialization.cpp | 38 bool FalseVal = false; in consume() local 82 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
|
/external/llvm-project/llvm/lib/DebugInfo/CodeView/ |
D | RecordSerialization.cpp | 38 bool FalseVal = false; in consume() local 82 Num = APSInt(APInt(32, N, FalseVal), true); in consume()
|
/external/llvm/lib/DebugInfo/CodeView/ |
D | RecordSerialization.cpp | 36 bool FalseVal = false; in consume() local 88 /*isSigned=*/FalseVal), in consume()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3377 Value *FalseVal, const Query &Q, in SimplifySelectInst() argument 3385 return FalseVal; in SimplifySelectInst() 3389 if (TrueVal == FalseVal) in SimplifySelectInst() 3395 return FalseVal; in SimplifySelectInst() 3398 return FalseVal; in SimplifySelectInst() 3399 if (isa<UndefValue>(FalseVal)) // select C, X, undef -> X in SimplifySelectInst() 3432 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() 3434 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst() 3437 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() 3439 return TrueWhenUnset ? FalseVal : TrueVal; in SimplifySelectInst() [all …]
|
D | LazyValueInfo.cpp | 901 LVILatticeVal FalseVal = getBlockValue(SI->getFalseValue(), BB); in solveBlockValueSelect() local 904 if (FalseVal.isOverdefined()) { in solveBlockValueSelect() 909 if (TrueVal.isConstantRange() && FalseVal.isConstantRange()) { in solveBlockValueSelect() 911 ConstantRange FalseCR = FalseVal.getConstantRange(); in solveBlockValueSelect() 953 FalseVal = intersect(FalseVal, FalseValTaken); in solveBlockValueSelect() 981 FalseVal = intersect(FalseVal, in solveBlockValueSelect() 999 Result.mergeIn(FalseVal, DL); in solveBlockValueSelect()
|
D | CFLGraph.h | 285 auto *FalseVal = Inst.getFalseValue(); in visitSelectInst() local 287 addAssignEdge(FalseVal, &Inst); in visitSelectInst()
|
D | ValueTracking.cpp | 3709 Value *TrueVal, Value *FalseVal, in matchSelectPattern() argument 3771 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern() 3782 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern() 3805 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in matchSelectPattern() 3806 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in matchSelectPattern() 3817 return {(CmpLHS == FalseVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern() 3822 if (const auto *C2 = dyn_cast<ConstantInt>(FalseVal)) { in matchSelectPattern() 3828 RHS = FalseVal; in matchSelectPattern() 3911 Value *FalseVal = SI->getFalseValue(); in matchSelectPattern() local 3922 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) in matchSelectPattern() [all …]
|
/external/llvm-project/llvm/lib/TableGen/ |
D | TGLexer.h | 61 TrueVal, FalseVal, enumerator
|