Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp837 Constant *NarrowC; in foldNoWrapAdd() local
839 m_NSWAddLike(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
840 Value *WideC = Builder.CreateSExt(NarrowC, Ty); in foldNoWrapAdd()
847 m_OneUse(m_ZExt(m_NUWAddLike(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
848 Value *WideC = Builder.CreateZExt(NarrowC, Ty); in foldNoWrapAdd()
H A DInstCombineCasts.cpp569 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local
571 return BinaryOperator::Create(BinOp->getOpcode(), NarrowC, TruncX); in narrowBinOp()
575 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local
577 return BinaryOperator::Create(BinOp->getOpcode(), TruncX, NarrowC); in narrowBinOp()
H A DInstCombineCalls.cpp1724 if (Constant *NarrowC = getLosslessUnsignedTrunc(C, X->getType())) { in visitCallInst() local
1725 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst()
1746 if (Constant *NarrowC = getLosslessSignedTrunc(C, X->getType())) { in visitCallInst() local
1747 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst()
H A DInstructionCombining.cpp2285 Constant *NarrowC = getLosslessTrunc(WideC, X->getType(), CastOpc); in narrowMathIfNoOverflow() local
2286 if (!NarrowC) in narrowMathIfNoOverflow()
2288 Y = NarrowC; in narrowMathIfNoOverflow()