/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 347 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp() local 384 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp() 385 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp() 399 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp() 401 CmpLHS = TrueVal; in visitSelectInstWithICmp() 403 } else if (match(FalseVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp() 405 CmpLHS = FalseVal; in visitSelectInstWithICmp() 413 if (match(TrueVal, m_ZExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp() 415 CmpLHS = TrueVal; in visitSelectInstWithICmp() 417 } else if (match(FalseVal, m_ZExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 316 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndOr() local 324 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1)))) in foldSelectICmpAndOr() 336 Value *V = CmpLHS; in foldSelectICmpAndOr() 373 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz() local 399 if (match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) || in foldSelectCttzCtlz() 400 match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) { in foldSelectCttzCtlz() 419 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp() local 448 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp() 449 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp() 463 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 506 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndOr() local 518 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndOr() 521 V = CmpLHS; in foldSelectICmpAndOr() 533 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V))))) in foldSelectICmpAndOr() 536 C1Log = CmpLHS->getType()->getScalarSizeInBits() - 1; in foldSelectICmpAndOr() 655 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz() local 681 if (match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) || in foldSelectCttzCtlz() 682 match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) { in foldSelectCttzCtlz() 699 Value *CmpLHS = Cmp.getOperand(0); in adjustMinMax() local 726 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in adjustMinMax() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 499 Instruction *CmpLHS = dyn_cast<Instruction>(CI->getOperand(0)); in computeUnlikelySuccessors() local 500 PHINode *CmpPHI = dyn_cast<PHINode>(CmpLHS); in computeUnlikelySuccessors() 504 while (!CmpPHI && CmpLHS && isa<BinaryOperator>(CmpLHS) && in computeUnlikelySuccessors() 505 isa<Constant>(CmpLHS->getOperand(1))) { in computeUnlikelySuccessors() 507 if (!L->contains(CmpLHS)) in computeUnlikelySuccessors() 509 InstChain.push_back(cast<BinaryOperator>(CmpLHS)); in computeUnlikelySuccessors() 510 CmpLHS = dyn_cast<Instruction>(CmpLHS->getOperand(0)); in computeUnlikelySuccessors() 511 if (CmpLHS) in computeUnlikelySuccessors() 512 CmpPHI = dyn_cast<PHINode>(CmpLHS); in computeUnlikelySuccessors()
|
D | ValueTracking.cpp | 4261 Value *CmpLHS, Value *CmpRHS, in matchFastFloatClamp() argument 4290 m_CombineOr(m_OrdFMin(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp() 4291 m_UnordFMin(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp() 4300 m_CombineOr(m_OrdFMax(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp() 4301 m_UnordFMax(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp() 4315 Value *CmpLHS, Value *CmpRHS, in matchClamp() argument 4326 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() 4331 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() 4336 if (match(FalseVal, m_UMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() 4341 if (match(FalseVal, m_UMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp() [all …]
|
D | InstructionSimplify.cpp | 2104 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local 2105 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition() 2108 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition() 3746 static Value *simplifySelectWithFakeICmpEq(Value *CmpLHS, Value *CmpRHS, in simplifySelectWithFakeICmpEq() argument 3751 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, X, Mask)) in simplifySelectWithFakeICmpEq() 3764 Value *CmpLHS, *CmpRHS; in simplifySelectWithICmpCond() local 3765 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond() 3771 if (match(CmpLHS, m_And(m_Value(X), m_APInt(Y)))) in simplifySelectWithICmpCond() 3778 if (Value *V = simplifySelectWithFakeICmpEq(CmpLHS, CmpRHS, Pred, in simplifySelectWithICmpCond() 3786 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in simplifySelectWithICmpCond() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | Mips16ISelDAGToDAG.cpp | 196 SDValue InFlag = Node->getOperand(2), CmpLHS; in trySelect() local 205 CmpLHS = InFlag.getValue(0); in trySelect() 208 CmpLHS = InFlag.getOperand(0); in trySelect() 212 SDValue Ops[] = {CmpLHS, InFlag.getOperand(1)}; in trySelect()
|
D | MipsSEISelDAGToDAG.h | 42 void selectAddESubE(unsigned MOp, SDValue InFlag, SDValue CmpLHS,
|
D | MipsSEISelDAGToDAG.cpp | 241 SDValue CmpLHS, const SDLoc &DL, in selectAddESubE() argument 255 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in selectAddESubE()
|
/external/swiftshader/third_party/LLVM/lib/Target/Mips/ |
D | MipsISelDAGToDAG.cpp | 211 SDValue InFlag = Node->getOperand(2), CmpLHS; in Select() local 219 CmpLHS = InFlag.getValue(0); in Select() 222 CmpLHS = InFlag.getOperand(0); in Select() 226 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in Select()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 215 Value *CmpLHS = ICI->getOperand(0); in extractAlignmentInfo() local 217 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo() 220 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo() 224 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS); in extractAlignmentInfo()
|
D | JumpThreading.cpp | 751 Value *CmpLHS = Cmp->getOperand(0); in ComputeValueKnownInPredecessors() local 755 PHINode *PN = dyn_cast<PHINode>(CmpLHS); in ComputeValueKnownInPredecessors() 769 if (PN == CmpLHS) { in ComputeValueKnownInPredecessors() 773 LHS = CmpLHS->DoPHITranslation(BB, PredBB); in ComputeValueKnownInPredecessors() 807 if (!isa<Instruction>(CmpLHS) || in ComputeValueKnownInPredecessors() 808 cast<Instruction>(CmpLHS)->getParent() != BB) { in ComputeValueKnownInPredecessors() 817 LVI->getPredicateOnEdge(Pred, CmpLHS, in ComputeValueKnownInPredecessors() 838 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in ComputeValueKnownInPredecessors() 850 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS)); in ComputeValueKnownInPredecessors()
|
D | GuardWidening.cpp | 558 Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1); in parseRangeChecks() local 560 std::swap(CmpLHS, CmpRHS); in parseRangeChecks() 565 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())), in parseRangeChecks()
|
D | GVN.cpp | 1440 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic() local 1442 if (isa<Constant>(CmpLHS)) in processAssumeIntrinsic() 1443 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic() 1447 if (RHSConst != nullptr && !isa<Constant>(CmpLHS)) in processAssumeIntrinsic() 1448 ReplaceWithConstMap[CmpLHS] = RHSConst; in processAssumeIntrinsic()
|
/external/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 215 Value *CmpLHS = ICI->getOperand(0); in extractAlignmentInfo() local 217 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo() 220 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo() 224 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS); in extractAlignmentInfo()
|
D | GuardWidening.cpp | 501 Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1); in parseRangeChecks() local 503 std::swap(CmpLHS, CmpRHS); in parseRangeChecks() 508 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())), in parseRangeChecks()
|
D | GVN.cpp | 1725 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic() local 1727 if (isa<Constant>(CmpLHS)) in processAssumeIntrinsic() 1728 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic() 1732 if (RHSConst != nullptr && !isa<Constant>(CmpLHS)) in processAssumeIntrinsic() 1733 ReplaceWithConstMap[CmpLHS] = RHSConst; in processAssumeIntrinsic()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 3708 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument 3711 LHS = CmpLHS; in matchSelectPattern() 3724 if (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern() 3738 bool LHSSafe = isKnownNonNaN(CmpLHS, FMF); in matchSelectPattern() 3771 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern() 3772 std::swap(CmpLHS, CmpRHS); 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() 3811 return {(CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern() [all …]
|
D | InstructionSimplify.cpp | 1937 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local 1938 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition() 1941 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition() 3405 Value *CmpLHS = ICI->getOperand(0); in SimplifySelectInst() local 3413 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst() 3418 X = CmpLHS; in SimplifySelectInst() 3423 X = CmpLHS; in SimplifySelectInst() 3476 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst() 3478 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst() 3481 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 1578 const Value *CmpLHS = CI->getOperand(0); in X86SelectBranch() local 1588 CmpRHS = CmpLHS; in X86SelectBranch() 1620 std::swap(CmpLHS, CmpRHS); in X86SelectBranch() 1623 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch() 1979 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitCMoveSelect() local 1982 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect() 1984 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType()); in X86FastEmitCMoveSelect() 1986 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect() 2069 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitSSESelect() local 2079 CmpRHS = CmpLHS; in X86FastEmitSSESelect() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 1659 const Value *CmpLHS = CI->getOperand(0); in X86SelectBranch() local 1669 CmpRHS = CmpLHS; in X86SelectBranch() 1702 std::swap(CmpLHS, CmpRHS); in X86SelectBranch() 1705 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch() 2073 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitCMoveSelect() local 2076 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect() 2078 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType()); in X86FastEmitCMoveSelect() 2080 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect() 2175 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitSSESelect() local 2185 CmpRHS = CmpLHS; in X86FastEmitSSESelect() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 211 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC() 221 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 224 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC() 234 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 235 const Value *CmpLHS, *CmpMHS, *CmpRHS; member 256 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 2514 SDValue CmpLHS = Cond.getOperand(0); in performCtlzCombine() local 2519 RHS.getOperand(0) == CmpLHS && in performCtlzCombine() 2521 return getFFBH_U32(*this, DAG, SL, CmpLHS); in performCtlzCombine() 2527 LHS.getOperand(0) == CmpLHS && in performCtlzCombine() 2529 return getFFBH_U32(*this, DAG, SL, CmpLHS); in performCtlzCombine()
|