Searched refs:AddC (Results 1 – 7 of 7) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 458 const APInt *AC, *AddC; in commonShiftTransforms() local 464 if (match(Op0, m_APInt(AC)) && match(Op1, m_Add(m_Value(A), m_APInt(AddC))) && in commonShiftTransforms() 465 AddC->isNegative() && (-*AddC).ult(BitWidth)) { in commonShiftTransforms() 467 unsigned PosOffset = (-*AddC).getZExtValue(); in commonShiftTransforms()
|
| H A D | InstCombineAndOrXor.cpp | 2225 Constant *ShiftedC1, *ShiftedC2, *AddC; in foldBinOpOfDisplacedShifts() local 2231 m_ImmConstant(AddC)))))) in foldBinOpOfDisplacedShifts() 2235 if (!match(AddC, in foldBinOpOfDisplacedShifts() 2256 I.getOpcode(), ShiftedC1, Builder.CreateBinOp(ShiftOp, ShiftedC2, AddC)); in foldBinOpOfDisplacedShifts() 2495 const APInt *AddC; in visitAnd() local 2496 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC)))) { in visitAnd() 2501 if (Op0->hasOneUse() && C->isPowerOf2() && (*AddC & (*C - 1)) == 0) { in visitAnd() 2502 assert((*C & *AddC) != 0 && "Expected common bit"); in visitAnd()
|
| H A D | InstCombineAddSub.cpp | 2763 const APInt *AddC, *AndC; in visitSub() local 2764 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC))) && in visitSub() 2766 unsigned Cttz = AddC->countr_zero(); in visitSub()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1738 const APInt *CmpC, *AddC; in combineToUSubWithOverflow() local 1739 if (match(U, m_Add(m_Specific(A), m_APInt(AddC))) && in combineToUSubWithOverflow() 1740 match(B, m_APInt(CmpC)) && *AddC == -(*CmpC)) { in combineToUSubWithOverflow()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 18151 ConstantSDNode *AddC = nullptr; in performSRACombine() local 18157 AddC = dyn_cast<ConstantSDNode>(N0.getOperand(IsAdd ? 1 : 0)); in performSRACombine() 18158 if (!AddC) in performSRACombine() 18162 if (llvm::countr_zero(AddC->getZExtValue()) < 32) in performSRACombine() 18190 if (!AddC && !Shl.hasOneUse()) in performSRACombine() 18198 if (AddC) { in performSRACombine() 18200 DAG.getConstant(AddC->getZExtValue() >> 32, DL, MVT::i64); in performSRACombine()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 10877 if (ConstantSDNode *AddC = in visitSRA() local 10895 DAG.getConstant(AddC->getAPIntValue().lshr(ShiftAmt).trunc( in visitSRA() 12367 SDValue AddC = DAG.getConstant(~C, DL, VT); in visitSELECT() local 12368 SDValue Add = DAG.getNode(ISD::ADD, DL, VT, N2, AddC); in visitSELECT() 12374 SDValue AddC = DAG.getConstant(-C, DL, VT); in visitSELECT() local 12375 SDValue Add = DAG.getNode(ISD::ADD, DL, VT, N1, AddC); in visitSELECT()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 55658 int64_t AddC = Sext ? AddOp1C->getSExtValue() : AddOp1C->getZExtValue(); in promoteExtBeforeAdd() local 55660 SDValue NewConstant = DAG.getConstant(AddC, SDLoc(Add), VT); in promoteExtBeforeAdd() 56476 SDValue AddC = LHS.getOperand(1); in combineSetCC() local 56478 DAG.isConstantIntBuildVectorOrConstantInt(AddC)) { in combineSetCC() 56487 if (ISD::isConstantSplatVectorAllOnes(AddC.getNode()) && in combineSetCC() 56495 C0 = DAG.getNegative(AddC, DL, OpVT); in combineSetCC() 56503 C0 = DAG.getNOT(DL, AddC, OpVT); in combineSetCC()
|