Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:V1

2184   Value *V1 = nullptr;
2186 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr;
2191 if (V1 == A || V1 == B) {
2192 Value *NewOp = Builder->CreateAnd((V1 == A) ? B : A, CI1);
2193 return BinaryOperator::CreateOr(NewOp, V1);
2214 Value *V1 = nullptr;
2216 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2))))
2223 if (V1 == A || V1 == B) {
2224 Value *NewOp = Builder->CreateAnd(V1 == A ? B : A, CI1);
2225 return BinaryOperator::CreateXor(NewOp, V1);
2344 Value *V1 = nullptr, *V2 = nullptr;
2351 if (match(A, m_Or(m_Value(V1), m_Value(V2))) &&
2352 ((V1 == B &&
2355 MaskedValueIsZero(V1, ~C1->getValue(), 0, &I)))) // (N|V)
2359 if (match(B, m_Or(m_Value(V1), m_Value(V2))) &&
2360 ((V1 == A &&
2363 MaskedValueIsZero(V1, ~C2->getValue(), 0, &I)))) // (N|V)
2370 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) &&
2372 match(B, m_Or(m_Specific(V1), m_ConstantInt(C4))) &&
2374 V2 = Builder->CreateOr(V1, ConstantExpr::getOr(C3, C4), "bitfield");
2413 if (match(A, m_Or(m_Value(V1), m_Specific(B))) ||
2414 match(A, m_Or(m_Specific(B), m_Value(V1)))) {
2415 Instruction *Ret = FoldOrWithConstants(I, Op1, V1, B, C);
2419 if (match(B, m_Or(m_Specific(A), m_Value(V1))) ||
2420 match(B, m_Or(m_Value(V1), m_Specific(A)))) {
2421 Instruction *Ret = FoldOrWithConstants(I, Op0, A, V1, D);
2425 if (match(A, m_Xor(m_Value(V1), m_Specific(B))) ||
2426 match(A, m_Xor(m_Specific(B), m_Value(V1)))) {
2427 Instruction *Ret = FoldXorWithConstants(I, Op1, V1, B, C);
2431 if (match(B, m_Xor(m_Specific(A), m_Value(V1))) ||
2432 V1), m_Specific(A)))) {
2433 Instruction *Ret = FoldXorWithConstants(I, Op0, A, V1, D);