Searched refs:NarrowC (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAddSub.cpp | 832 Constant *NarrowC; in foldNoWrapAdd() local 833 if (match(Op0, m_OneUse(m_SExt(m_NSWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd() 834 Constant *WideC = ConstantExpr::getSExt(NarrowC, Ty); in foldNoWrapAdd() 840 if (match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd() 841 Constant *WideC = ConstantExpr::getZExt(NarrowC, Ty); in foldNoWrapAdd()
|
| H A D | InstCombineCalls.cpp | 1317 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst() local 1318 if (ConstantExpr::getZExt(NarrowC, II->getType()) == C) { in visitCallInst() 1319 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst() 1340 Constant *NarrowC = ConstantExpr::getTrunc(C, X->getType()); in visitCallInst() local 1341 if (ConstantExpr::getSExt(NarrowC, II->getType()) == C) { in visitCallInst() 1342 Value *NarrowMaxMin = Builder.CreateBinaryIntrinsic(IID, X, NarrowC); in visitCallInst()
|
| H A D | InstCombineCasts.cpp | 666 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local 668 return BinaryOperator::Create(BinOp->getOpcode(), NarrowC, TruncX); in narrowBinOp() 672 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp() local 674 return BinaryOperator::Create(BinOp->getOpcode(), TruncX, NarrowC); in narrowBinOp()
|
| H A D | InstructionCombining.cpp | 1909 Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType()); in narrowMathIfNoOverflow() local 1910 if (ConstantExpr::getCast(CastOpc, NarrowC, BO.getType()) != WideC) in narrowMathIfNoOverflow() 1912 Y = NarrowC; in narrowMathIfNoOverflow()
|