/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 305 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndOr() local 313 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1)))) in foldSelectICmpAndOr() 325 Value *V = CmpLHS; in foldSelectICmpAndOr() 362 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz() local 388 if (match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) || in foldSelectCttzCtlz() 389 match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) { in foldSelectCttzCtlz() 408 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp() local 437 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp() 438 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp() 452 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | Mips16ISelDAGToDAG.cpp | 261 SDValue InFlag = Node->getOperand(2), CmpLHS; in selectNode() local 269 CmpLHS = InFlag.getValue(0); in selectNode() 272 CmpLHS = InFlag.getOperand(0); in selectNode() 276 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in selectNode()
|
D | MipsSEISelDAGToDAG.h | 40 SDNode *selectAddESubE(unsigned MOp, SDValue InFlag, SDValue CmpLHS,
|
D | MipsSEISelDAGToDAG.cpp | 236 SDValue CmpLHS, SDLoc DL, in selectAddESubE() argument 250 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in selectAddESubE()
|
/external/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 226 Value *CmpLHS = ICI->getOperand(0); in extractAlignmentInfo() local 228 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo() 231 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo() 235 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS); in extractAlignmentInfo()
|
D | GVN.cpp | 1834 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic() local 1836 if (isa<Constant>(CmpLHS)) in processAssumeIntrinsic() 1837 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic() 1841 if (RHSConst != nullptr && !isa<Constant>(CmpLHS)) in processAssumeIntrinsic() 1842 ReplaceWithConstMap[CmpLHS] = RHSConst; in processAssumeIntrinsic()
|
/external/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 1405 const Value *CmpLHS = CI->getOperand(0); in X86SelectBranch() local 1415 CmpRHS = CmpLHS; in X86SelectBranch() 1447 std::swap(CmpLHS, CmpRHS); in X86SelectBranch() 1450 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch() 1806 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitCMoveSelect() local 1809 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect() 1811 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType()); in X86FastEmitCMoveSelect() 1813 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect() 1896 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitSSESelect() local 1906 CmpRHS = CmpLHS; in X86FastEmitSSESelect() [all …]
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 3859 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument 3862 LHS = CmpLHS; in matchSelectPattern() 3875 if (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern() 3889 bool LHSSafe = isKnownNonNaN(CmpLHS, FMF); in matchSelectPattern() 3922 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern() 3923 std::swap(CmpLHS, CmpRHS); in matchSelectPattern() 3933 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern() 3956 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in matchSelectPattern() 3957 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in matchSelectPattern() 3962 return {(CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern() [all …]
|
D | InstructionSimplify.cpp | 1924 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local 1925 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition() 1928 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition() 3345 Value *CmpLHS = ICI->getOperand(0); in SimplifySelectInst() local 3353 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst() 3358 X = CmpLHS; in SimplifySelectInst() 3363 X = CmpLHS; in SimplifySelectInst() 3416 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst() 3418 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst() 3421 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst() [all …]
|
/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
|
D | SelectionDAGBuilder.cpp | 1657 if ((Cases[0].CmpLHS == Cases[1].CmpLHS && in ShouldEmitAsBranches() 1659 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches() 1660 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches() 1737 ExportFromCurrentBlock(SwitchCases[i].CmpLHS); in visitBr() 1770 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase() 1789 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); in visitSwitchCase() 1795 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) { in visitSwitchCase()
|
D | DAGCombiner.cpp | 13835 SDValue CmpLHS; in SimplifySelectOps() local 13840 CmpLHS = TheSelect->getOperand(0); in SimplifySelectOps() 13847 CmpLHS = Cmp.getOperand(0); in SimplifySelectOps() 13852 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT || in SimplifySelectOps()
|