Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp831 Constant *NarrowC; in foldNoWrapAdd() local
832 if (match(Op0, m_OneUse(m_SExt(m_NSWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
833 Constant *WideC = ConstantExpr::getSExt(NarrowC, Ty); in foldNoWrapAdd()
839 if (match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd()
840 Constant *WideC = ConstantExpr::getZExt(NarrowC, Ty); in foldNoWrapAdd()
H A DInstCombineCalls.cpp1338 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst() local
1339 if (ConstantExpr::getZExt(NarrowC, II->getType()) == C) { in visitCallInst()
1340 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst()
1361 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst() local
1362 if (ConstantExpr::getSExt(NarrowC, II->getType()) == C) { in visitCallInst()
1363 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst()
H A DInstCombineCasts.cpp695 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local
697 return BinaryOperator::Create(BinOp->getOpcode(), NarrowC, TruncX); in narrowBinOp()
701 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local
703 return BinaryOperator::Create(BinOp->getOpcode(), TruncX, NarrowC); in narrowBinOp()
H A DInstructionCombining.cpp1924 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow() local
1925 if (ConstantExpr::getCast(CastOpc, NarrowC, BO.getType()) != WideC) in narrowMathIfNoOverflow()
1927 Y = NarrowC; in narrowMathIfNoOverflow()