Searched refs:AddC (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 415 const APInt *AC, *AddC; in commonShiftTransforms() local 421 if (match(Op0, m_APInt(AC)) && match(Op1, m_Add(m_Value(A), m_APInt(AddC))) && in commonShiftTransforms() 422 AddC->isNegative() && (-*AddC).ult(BitWidth)) { in commonShiftTransforms() 424 unsigned PosOffset = (-*AddC).getZExtValue(); in commonShiftTransforms()
|
| H A D | InstCombineAndOrXor.cpp | 1828 const APInt *AddC; in visitAnd() local 1829 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC)))) { in visitAnd() 1834 if ((*AddC & LowMask).isZero()) in visitAnd() 1841 if (Op0->hasOneUse() && C->isPowerOf2() && (*AddC & (*C - 1)) == 0) { in visitAnd() 1842 assert((*C & *AddC) != 0 && "Expected common bit"); in visitAnd()
|
| H A D | InstCombineAddSub.cpp | 2185 const APInt *AddC, *AndC; in visitSub() local 2186 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC))) && in visitSub() 2189 unsigned Cttz = AddC->countTrailingZeros(); in visitSub()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1557 const APInt *CmpC, *AddC; in combineToUSubWithOverflow() local 1558 if (match(U, m_Add(m_Specific(A), m_APInt(AddC))) && in combineToUSubWithOverflow() 1559 match(B, m_APInt(CmpC)) && *AddC == -(*CmpC)) { in combineToUSubWithOverflow()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 8698 ConstantSDNode *AddC = nullptr; in performSRACombine() local 8706 AddC = dyn_cast<ConstantSDNode>(N0.getOperand(IsAdd ? 1 : 0)); in performSRACombine() 8707 if (!AddC) in performSRACombine() 8711 if (AddC->getAPIntValue().countTrailingZeros() < 32) in performSRACombine() 8731 if (AddC) { in performSRACombine() 8733 DAG.getConstant(AddC->getAPIntValue().lshr(32), DL, MVT::i64); in performSRACombine()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 9353 if (ConstantSDNode *AddC = in visitSRA() local 9372 DAG.getConstant(AddC->getAPIntValue().lshr(ShiftAmt).trunc( in visitSRA()
|