Searched refs:m_Trunc (Results 1 – 13 of 13) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | CmpInstAnalysis.cpp | 146 if (LookThruTrunc && match(LHS, m_Trunc(m_Value(X)))) { in decomposeBitTestICmp()
|
| H A D | LazyValueInfo.cpp | 1130 m_Trunc(m_Specific(Val)))) && in getValueFromICmpCondition()
|
| H A D | InstructionSimplify.cpp | 845 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in simplifySubInst() 846 match(Op1, m_Trunc(m_Value(Y)))) in simplifySubInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 74 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts() 197 if (match(Masked, m_CombineAnd(m_Trunc(m_Value(Masked)), m_Value(Trunc))) && in dropRedundantMaskingOfLeftShiftInput() 919 if (match(Op0, m_OneUse(m_Trunc(m_OneUse(m_BinOp(Shr))))) && in visitShl() 1208 if (match(Op0, m_OneUse(m_Trunc(m_Instruction(TruncSrc)))) && in visitLShr()
|
| H A D | InstCombineCasts.cpp | 351 if ((match(V, m_ZExtOrSExt(m_Value(X))) || match(V, m_Trunc(m_Value(X)))) && in canAlwaysEvaluateInType() 694 if (match(BinOp0, m_Trunc(m_Value(A))) && match(BinOp1, m_Constant(C))) { in narrowBinOp() 1331 if (match(Src, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt() 1338 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt() 1539 if (match(Src, m_Trunc(m_Value(X)))) { in visitSExt() 1585 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_Constant(BA)), in visitSExt() 1603 if (match(Src, m_OneUse(m_AShr(m_Trunc(m_Value(X)), in visitSExt()
|
| H A D | InstCombineAndOrXor.cpp | 854 } else if (match(X0, m_Trunc(m_Specific(X1)))) { in foldSignedTruncationCheck() 1021 if (!match(V, m_OneUse(m_Trunc(m_Value(X))))) in matchIntPart() 2636 if (match(RHS0, m_Trunc(m_Value(V))) && in foldAndOrOfICmps() 2640 } else if (match(LHS0, m_Trunc(m_Value(V))) && in foldAndOrOfICmps()
|
| H A D | InstCombineAddSub.cpp | 2154 if (match(Op0, m_Trunc(m_PtrToInt(m_Value(LHSOp)))) && in visitSub() 2155 match(Op1, m_Trunc(m_PtrToInt(m_Value(RHSOp))))) in visitSub()
|
| H A D | InstCombineCompares.cpp | 1804 if (match(And->getOperand(0), m_OneUse(m_Trunc(m_Value(W)))) && in foldICmpAndConstConst() 4726 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), m_ConstantInt(ShAmt))))) && in foldICmpEquality() 4778 if (match(Op0, m_AShr(m_Trunc(m_Value(A)), m_SpecificInt(BitWidth - 1))) && in foldICmpEquality() 4779 match(Op1, m_Trunc(m_LShr(m_Specific(A), m_SpecificInt(BitWidth)))) && in foldICmpEquality() 4801 if (!match(Op0, m_OneUse(m_Trunc(m_Value(X)))) || !match(Op1, m_APInt(C))) in foldICmpWithTrunc()
|
| H A D | InstCombineSelect.cpp | 636 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V))))) in foldSelectICmpAndOr() 967 !match(SelectArg, m_Trunc(m_Value(Count)))) in foldSelectCttzCtlz()
|
| H A D | InstCombineCalls.cpp | 1475 if (match(IIOperand, m_Trunc(m_BSwap(m_Value(X))))) { in visitCallInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopFlatten.cpp | 206 match(U, m_c_Add(m_Trunc(m_Specific(InnerInductionPHI)), in matchLinearIVUser() 208 match(MatchedMul, m_c_Mul(m_Trunc(m_Specific(OuterInductionPHI)), in matchLinearIVUser()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 1611 inline CastClass_match<OpTy, Instruction::Trunc> m_Trunc(const OpTy &Op) { in m_Trunc() function 1618 return m_CombineOr(m_Trunc(Op), Op); in m_TruncOrSelf()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 3047 if (match(V, m_Trunc(m_Value(X)))) { in collectBitParts()
|