Home
last modified time | relevance | path

Searched refs:CmpC (Results 1 – 6 of 6) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp363 const APInt *CmpC; in SimplifyDemandedUseBits() local
365 if (!match(I->getOperand(0), m_ICmp(Pred, m_Value(X), m_APInt(CmpC))) || in SimplifyDemandedUseBits()
366 isa<Constant>(X) || CmpC->getBitWidth() != SelC->getBitWidth()) in SimplifyDemandedUseBits()
370 if (*CmpC == *SelC) in SimplifyDemandedUseBits()
374 if ((*CmpC & DemandedMask) == (*SelC & DemandedMask)) { in SimplifyDemandedUseBits()
375 I->setOperand(OpNo, ConstantInt::get(I->getType(), *CmpC)); in SimplifyDemandedUseBits()
H A DInstCombineCompares.cpp5113 auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros()); in foldICmpUsingKnownBits() local
5115 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
5119 auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros()); in foldICmpUsingKnownBits() local
5122 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
5147 const APInt *CmpC; in foldICmpUsingKnownBits() local
5148 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits()
5150 if (*CmpC == Op0Min + 1) in foldICmpUsingKnownBits()
5152 ConstantInt::get(Op1->getType(), *CmpC - 1)); in foldICmpUsingKnownBits()
5155 if (Op0Known.countMinTrailingZeros() >= CmpC->ceilLogBase2()) in foldICmpUsingKnownBits()
5169 const APInt *CmpC; in foldICmpUsingKnownBits() local
[all …]
H A DInstCombineSelect.cpp786 const APInt *C, *CmpC; in canonicalizeSaturatedAdd() local
789 match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) { in canonicalizeSaturatedAdd()
953 const APInt *CmpC; in adjustMinMax() local
954 if (!Cmp.hasOneUse() || !match(CmpRHS, m_APInt(CmpC))) in adjustMinMax()
966 AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC + 1); in adjustMinMax()
968 AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC - 1); in adjustMinMax()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp748 SmallVector<Constant *, 32> CmpC(VecTy->getNumElements(), in foldExtractedCmps() local
750 CmpC[Index0] = C0; in foldExtractedCmps()
751 CmpC[Index1] = C1; in foldExtractedCmps()
752 Value *VCmp = Builder.CreateCmp(Pred, X, ConstantVector::get(CmpC)); in foldExtractedCmps()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1543 const APInt *CmpC, *AddC; in combineToUSubWithOverflow() local
1545 match(B, m_APInt(CmpC)) && *AddC == -(*CmpC)) { in combineToUSubWithOverflow()
1769 auto *CmpC = dyn_cast<ConstantInt>(User->getOperand(1)); in sinkAndCmp0Expression() local
1770 if (!CmpC || !CmpC->isZero()) in sinkAndCmp0Expression()
7710 APInt CmpC = cast<ConstantInt>(Cmp->getOperand(1))->getValue(); in optimizeBranch() local
7723 if (CmpC.isPowerOf2() && Cmp->getPredicate() == ICmpInst::ICMP_ULT && in optimizeBranch()
7724 match(UI, m_Shr(m_Specific(X), m_SpecificInt(CmpC.logBase2())))) { in optimizeBranch()
7736 (match(UI, m_Add(m_Specific(X), m_SpecificInt(-CmpC))) || in optimizeBranch()
7737 match(UI, m_Sub(m_Specific(X), m_SpecificInt(CmpC))))) { in optimizeBranch()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp40446 SDValue CmpC; in combinePredicateReduction() local
40450 CmpC = DAG.getConstant(0, DL, CmpVT); in combinePredicateReduction()
40454 CmpC = DAG.getConstant(APInt::getLowBitsSet(CmpVT.getSizeInBits(), NumElts), in combinePredicateReduction()
40463 SDValue Setcc = DAG.getSetCC(DL, SetccVT, Movmsk, CmpC, CondCode); in combinePredicateReduction()