Home
last modified time | relevance | path

Searched refs:ConstB (Results 1 – 2 of 2) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp158 const APInt *ConstA = nullptr, *ConstB = nullptr, *ConstC = nullptr; in getMaskedICmpType() local
160 match(B, m_APInt(ConstB)); in getMaskedICmpType()
164 bool IsBPow2 = ConstB && ConstB->isPowerOf2(); in getMaskedICmpType()
195 } else if (ConstB && ConstC && ConstC->isSubsetOf(*ConstB)) { in getMaskedICmpType()
599 const APInt *ConstB, *ConstD; in foldLogOpOfMaskedICmps() local
600 if (!match(B, m_APInt(ConstB)) || !match(D, m_APInt(ConstD))) in foldLogOpOfMaskedICmps()
609 APInt NewMask = *ConstB & *ConstD; in foldLogOpOfMaskedICmps()
610 if (NewMask == *ConstB) in foldLogOpOfMaskedICmps()
621 APInt NewMask = *ConstB | *ConstD; in foldLogOpOfMaskedICmps()
622 if (NewMask == *ConstB) in foldLogOpOfMaskedICmps()
[all …]
H A DInstructionCombining.cpp1144 Constant *ConstA, *ConstB; in FoldOpIntoSelect() local
1145 if (!match(A, m_Constant(ConstA)) || !match(B, m_Constant(ConstB))) in FoldOpIntoSelect()
1153 auto *Cmp = ConstantExpr::getCompare(ICmpInst::ICMP_EQ, ConstA, ConstB); in FoldOpIntoSelect()