/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 573 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in visitSelectInstWithICmp() 970 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst() 980 if (match(TrueVal, m_Zero()) && match(FalseVal, m_AllOnes())) { in visitSelectInst()
|
D | InstCombineCompares.cpp | 3860 match(B, m_AllOnes())) in visitICmpInst() 3865 match(B, m_AllOnes())) in visitICmpInst() 3880 match(D, m_AllOnes())) in visitICmpInst() 3885 match(D, m_AllOnes())) in visitICmpInst() 4077 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in visitICmpInst()
|
D | InstCombineAndOrXor.cpp | 1603 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks() 1604 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
|
D | InstCombineMulDivRem.cpp | 189 if (match(Op1, m_AllOnes())) { in visitMul()
|
D | InstCombineAddSub.cpp | 1507 if (match(Op0, m_AllOnes())) in visitSub()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 933 match(Op1, m_AllOnes())) in foldAddWithConstant() 1114 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1609 if (match(Op0, m_AllOnes())) in visitSub() 1618 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes())))) in visitSub()
|
D | InstCombineAndOrXor.cpp | 1697 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks() 1698 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks() 2366 if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) && in foldXorOfICmps() 2367 PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes())) || in foldXorOfICmps() 2375 if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) && in foldXorOfICmps() 2378 PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes()))) { in foldXorOfICmps() 2766 match(Op1, m_AllOnes())) { in visitXor()
|
D | InstCombineSelect.cpp | 529 if ((IsEqualZero && !match(CmpRHS, m_AllOnes())) || in foldSelectICmpAndOr() 963 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in foldSelectInstWithICmp() 1601 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst() 1611 if (match(TrueVal, m_Zero()) && match(FalseVal, m_AllOnes())) { in visitSelectInst()
|
D | InstCombineCompares.cpp | 2881 auto m_Mask = m_CombineOr(m_LShr(m_AllOnes(), m_Value()), m_LowBitMask()); in foldICmpWithLowBitMaskedVal() 3109 match(B, m_AllOnes())) in foldICmpBinOp() 3114 match(B, m_AllOnes())) in foldICmpBinOp() 3127 match(D, m_AllOnes())) in foldICmpBinOp() 3132 match(D, m_AllOnes())) in foldICmpBinOp() 3359 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in foldICmpBinOp() 4744 if (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes())) in visitICmpInst()
|
D | InstCombineMulDivRem.cpp | 144 if (match(Op1, m_AllOnes())) { in visitMul() 1041 if (match(Op1, m_AllOnes()) || in visitSDiv()
|
D | InstCombineCasts.cpp | 1199 (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes()))) { in transformSExtICmp()
|
D | InstCombineCalls.cpp | 3576 (match(Src1, m_AllOnes()) && match(Src0, m_SExt(m_Value(ExtSrc))))) && in visitCallInst()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PatternMatch.h | 190 inline cst_pred_ty<is_all_ones> m_AllOnes() {return cst_pred_ty<is_all_ones>();} in m_AllOnes() function 191 inline api_pred_ty<is_all_ones> m_AllOnes(const APInt *&V) { return V; } in m_AllOnes() function
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 252 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function 255 inline api_pred_ty<is_all_ones> m_AllOnes(const APInt *&V) { return V; } in m_AllOnes() function
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 109 if (match(Op1, m_AllOnes())) // X * -1 == 0 - X in visitMul()
|
D | InstCombineAddSub.cpp | 552 if (match(Op0, m_AllOnes())) in visitSub()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 611 if (IsNUW && match(Op1, m_AllOnes())) in SimplifyAddInst() 1363 if (match(Op0, m_AllOnes())) in SimplifyAShrInst() 1789 if (match(Op1, m_AllOnes())) in SimplifyAndInst() 1917 if (match(Op1, m_Undef()) || match(Op1, m_AllOnes())) in SimplifyOrInst() 2632 if (Pred == ICmpInst::ICMP_SGT && match(RHS, m_AllOnes())) in simplifyICmpWithConstant() 3955 m_Xor(m_PtrToInt(m_Specific(StrippedBasePtr)), m_AllOnes()))) { in SimplifyGEPInst()
|
D | ValueTracking.cpp | 4642 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 1132 if (match(Op0, m_AllOnes())) in SimplifyAShrInst() 1181 if (match(Op1, m_AllOnes())) in SimplifyAndInst() 1270 if (match(Op1, m_AllOnes())) in SimplifyOrInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 306 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function 1692 return m_c_Xor(V, m_AllOnes());
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1434 if (match(Op0, m_AllOnes())) in SimplifyAShrInst() 1586 if (match(Op1, m_AllOnes())) in SimplifyAndInst() 1760 if (match(Op1, m_AllOnes())) in SimplifyOrInst() 3422 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in SimplifySelectInst()
|