Home
last modified time | relevance | path

Searched refs:m_Trunc (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp146 if (LookThruTrunc && match(LHS, m_Trunc(m_Value(X)))) { in decomposeBitTestICmp()
H A DLazyValueInfo.cpp1130 m_Trunc(m_Specific(Val)))) && in getValueFromICmpCondition()
H A DInstructionSimplify.cpp845 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 DInstCombineShifts.cpp74 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 DInstCombineCasts.cpp351 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 DInstCombineAndOrXor.cpp854 } 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 DInstCombineAddSub.cpp2154 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 DInstCombineCompares.cpp1804 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 DInstCombineSelect.cpp636 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V))))) in foldSelectICmpAndOr()
967 !match(SelectArg, m_Trunc(m_Value(Count)))) in foldSelectCttzCtlz()
H A DInstCombineCalls.cpp1475 if (match(IIOperand, m_Trunc(m_BSwap(m_Value(X))))) { in visitCallInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp206 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 DPatternMatch.h1611 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 DLocal.cpp3047 if (match(V, m_Trunc(m_Value(X)))) { in collectBitParts()