| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 964 const APInt *C, *CmpC; in canonicalizeSaturatedAdd() local 967 match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) { in canonicalizeSaturatedAdd() 1612 const APInt *CmpC; in foldSelectZeroOrOnes() local 1613 if (!match(Cmp->getOperand(1), m_APIntAllowUndef(CmpC))) in foldSelectZeroOrOnes() 1618 if (Cmp->getPredicate() == ICmpInst::ICMP_ULT && *CmpC == 2 && in foldSelectZeroOrOnes() 1632 const APInt *CmpC; in foldSelectInstWithICmpConst() local 1635 if (!match(ICI, m_ICmp(Pred, m_Value(V), m_APInt(CmpC)))) in foldSelectInstWithICmpConst() 1643 if (CmpC->isMinValue() && match(TVal, m_SpecificInt(*CmpC + 1))) in foldSelectInstWithICmpConst() 1646 if (CmpC->isMaxValue() && match(TVal, m_SpecificInt(*CmpC - 1))) in foldSelectInstWithICmpConst() 1649 if (CmpC->isMinSignedValue() && match(TVal, m_SpecificInt(*CmpC + 1))) in foldSelectInstWithICmpConst() [all …]
|
| H A D | InstCombineSimplifyDemanded.cpp | 397 const APInt *CmpC; in SimplifyDemandedUseBits() local 399 if (!match(I->getOperand(0), m_ICmp(Pred, m_Value(X), m_APInt(CmpC))) || in SimplifyDemandedUseBits() 400 isa<Constant>(X) || CmpC->getBitWidth() != SelC->getBitWidth()) in SimplifyDemandedUseBits() 404 if (*CmpC == *SelC) in SimplifyDemandedUseBits() 408 if ((*CmpC & DemandedMask) == (*SelC & DemandedMask)) { in SimplifyDemandedUseBits() 409 I->setOperand(OpNo, ConstantInt::get(I->getType(), *CmpC)); in SimplifyDemandedUseBits()
|
| H A D | InstCombineCompares.cpp | 6181 const APInt *CmpC; in foldICmpUsingKnownBits() local 6182 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits() 6184 if (*CmpC == Op0Min + 1) in foldICmpUsingKnownBits() 6198 const APInt *CmpC; in foldICmpUsingKnownBits() local 6199 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits() 6201 if (*CmpC == Op0Max - 1) in foldICmpUsingKnownBits() 6215 const APInt *CmpC; in foldICmpUsingKnownBits() local 6216 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits() 6226 const APInt *CmpC; in foldICmpUsingKnownBits() local 6227 if (match(Op1, m_APInt(CmpC))) { in foldICmpUsingKnownBits() [all …]
|
| H A D | InstCombineAndOrXor.cpp | 2417 Constant *CmpC = ConstantExpr::getSub(LshrC, Log2C1); in visitAnd() local 2418 Value *Cmp = Builder.CreateICmpEQ(X, CmpC); in visitAnd() 2434 Constant *CmpC = ConstantExpr::getSub(ShlC, Log2C3); in visitAnd() local 2435 Value *Cmp = Builder.CreateICmpEQ(X, CmpC); in visitAnd()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 1062 SmallVector<Constant *, 32> CmpC(VecTy->getNumElements(), in foldExtractedCmps() local 1064 CmpC[Index0] = C0; in foldExtractedCmps() 1065 CmpC[Index1] = C1; in foldExtractedCmps() 1066 Value *VCmp = Builder.CreateCmp(Pred, X, ConstantVector::get(CmpC)); in foldExtractedCmps()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1739 const APInt *CmpC, *AddC; in combineToUSubWithOverflow() local 1741 match(B, m_APInt(CmpC)) && *AddC == -(*CmpC)) { in combineToUSubWithOverflow() 1998 auto *CmpC = dyn_cast<ConstantInt>(User->getOperand(1)); in sinkAndCmp0Expression() local 1999 if (!CmpC || !CmpC->isZero()) in sinkAndCmp0Expression() 8139 APInt CmpC = cast<ConstantInt>(Cmp->getOperand(1))->getValue(); in optimizeBranch() local 8152 if (CmpC.isPowerOf2() && Cmp->getPredicate() == ICmpInst::ICMP_ULT && in optimizeBranch() 8153 match(UI, m_Shr(m_Specific(X), m_SpecificInt(CmpC.logBase2())))) { in optimizeBranch() 8166 (match(UI, m_Add(m_Specific(X), m_SpecificInt(-CmpC))) || in optimizeBranch() 8167 match(UI, m_Sub(m_Specific(X), m_SpecificInt(CmpC))))) { in optimizeBranch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 43477 SDValue CmpC; in combinePredicateReduction() local 43481 CmpC = DAG.getConstant(0, DL, CmpVT); in combinePredicateReduction() 43485 CmpC = DAG.getConstant(APInt::getLowBitsSet(CmpVT.getSizeInBits(), NumElts), in combinePredicateReduction() 43493 SDValue Setcc = DAG.getSetCC(DL, SetccVT, Movmsk, CmpC, CondCode); in combinePredicateReduction()
|