Searched refs:AddC (Results 1 – 7 of 7) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 447 const APInt *AC, *AddC; in commonShiftTransforms() local 453 if (match(Op0, m_APInt(AC)) && match(Op1, m_Add(m_Value(A), m_APInt(AddC))) && in commonShiftTransforms() 454 AddC->isNegative() && (-*AddC).ult(BitWidth)) { in commonShiftTransforms() 456 unsigned PosOffset = (-*AddC).getZExtValue(); in commonShiftTransforms()
|
| H A D | InstCombineAndOrXor.cpp | 2089 Constant *ShiftedC1, *ShiftedC2, *AddC; in foldBinOpOfDisplacedShifts() local 2095 m_ImmConstant(AddC)))))) in foldBinOpOfDisplacedShifts() 2099 if (!match(AddC, in foldBinOpOfDisplacedShifts() 2120 I.getOpcode(), ShiftedC1, Builder.CreateBinOp(ShiftOp, ShiftedC2, AddC)); in foldBinOpOfDisplacedShifts() 2293 const APInt *AddC; in visitAnd() local 2294 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC)))) { in visitAnd() 2299 if (Op0->hasOneUse() && C->isPowerOf2() && (*AddC & (*C - 1)) == 0) { in visitAnd() 2300 assert((*C & *AddC) != 0 && "Expected common bit"); in visitAnd()
|
| H A D | InstCombineAddSub.cpp | 2574 const APInt *AddC, *AndC; in visitSub() local 2575 if (match(Op0, m_Add(m_Value(X), m_APInt(AddC))) && in visitSub() 2577 unsigned Cttz = AddC->countr_zero(); in visitSub()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1739 const APInt *CmpC, *AddC; in combineToUSubWithOverflow() local 1740 if (match(U, m_Add(m_Specific(A), m_APInt(AddC))) && in combineToUSubWithOverflow() 1741 match(B, m_APInt(CmpC)) && *AddC == -(*CmpC)) { in combineToUSubWithOverflow()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 14307 ConstantSDNode *AddC = nullptr; in performSRACombine() local 14313 AddC = dyn_cast<ConstantSDNode>(N0.getOperand(IsAdd ? 1 : 0)); in performSRACombine() 14314 if (!AddC) in performSRACombine() 14318 if (AddC->getAPIntValue().countr_zero() < 32) in performSRACombine() 14346 if (!AddC && !Shl.hasOneUse()) in performSRACombine() 14354 if (AddC) { in performSRACombine() 14356 DAG.getConstant(AddC->getAPIntValue().lshr(32), DL, MVT::i64); in performSRACombine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 10409 if (ConstantSDNode *AddC = in visitSRA() local 10428 DAG.getConstant(AddC->getAPIntValue().lshr(ShiftAmt).trunc( in visitSRA()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 52512 int64_t AddC = Sext ? AddOp1C->getSExtValue() : AddOp1C->getZExtValue(); in promoteExtBeforeAdd() local 52514 SDValue NewConstant = DAG.getConstant(AddC, SDLoc(Add), VT); in promoteExtBeforeAdd()
|