Home
last modified time | relevance | path

Searched refs:NarrowC (Results 1 – 4 of 4) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp846 Constant *NarrowC; in foldNoWrapAdd() local
847 if (match(Op0, m_OneUse(m_SExt(m_NSWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
848 Constant *WideC = ConstantExpr::getSExt(NarrowC, Ty); in foldNoWrapAdd()
854 if (match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
855 Constant *WideC = ConstantExpr::getZExt(NarrowC, Ty); in foldNoWrapAdd()
H A DInstCombineCalls.cpp980 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst() local
981 if (ConstantExpr::getZExt(NarrowC, II->getType()) == C) { in visitCallInst()
982 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst()
1003 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst() local
1004 if (ConstantExpr::getSExt(NarrowC, II->getType()) == C) { in visitCallInst()
1005 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst()
H A DInstCombineCasts.cpp662 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local
664 return BinaryOperator::Create(BinOp->getOpcode(), NarrowC, TruncX); in narrowBinOp()
668 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local
670 return BinaryOperator::Create(BinOp->getOpcode(), TruncX, NarrowC); in narrowBinOp()
H A DInstructionCombining.cpp1830 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow() local
1831 if (ConstantExpr::getCast(CastOpc, NarrowC, BO.getType()) != WideC) in narrowMathIfNoOverflow()
1833 Y = NarrowC; in narrowMathIfNoOverflow()