Lines Matching refs:BCst
189 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getMaskedICmpType() local
193 bool IsBPow2 = (BCst && !BCst->isZero() && BCst->getValue().isPowerOf2()); in getMaskedICmpType()
224 } else if (BCst && CCst && ConstantExpr::getAnd(BCst, CCst) == CCst) { in getMaskedICmpType()
411 ConstantInt *BCst, *CCst, *DCst, *ECst; in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() local
412 if (!match(B, m_ConstantInt(BCst)) || !match(C, m_ConstantInt(CCst)) || in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
427 if (BCst->getValue() == 0 || DCst->getValue() == 0) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
434 if ((BCst->getValue() & DCst->getValue()) == 0) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
453 if ((((BCst->getValue() & DCst->getValue()) & ECst->getValue()) == 0) && in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
454 (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())).isPowerOf2()) { in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
455 APInt BorD = BCst->getValue() | DCst->getValue(); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
456 APInt BandBxorDorE = (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())) | in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
458 Value *NewMask = ConstantInt::get(BCst->getType(), BorD); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
459 Value *NewMaskedValue = ConstantInt::get(BCst->getType(), BandBxorDorE); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
477 if (!IsSubSetOrEqual(BCst, DCst) && !IsSuperSetOrEqual(BCst, DCst)) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
489 if (IsSubSetOrEqual(BCst, DCst)) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
500 if (IsSuperSetOrEqual(BCst, DCst)) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
505 assert(IsSubSetOrEqual(BCst, DCst) && "Precondition due to above code"); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
506 if ((BCst->getValue() & ECst->getValue()) != 0) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
622 ConstantInt *BCst, *DCst; in foldLogOpOfMaskedICmps() local
623 if (!match(B, m_ConstantInt(BCst)) || !match(D, m_ConstantInt(DCst))) in foldLogOpOfMaskedICmps()
632 APInt NewMask = BCst->getValue() & DCst->getValue(); in foldLogOpOfMaskedICmps()
634 if (NewMask == BCst->getValue()) in foldLogOpOfMaskedICmps()
645 APInt NewMask = BCst->getValue() | DCst->getValue(); in foldLogOpOfMaskedICmps()
647 if (NewMask == BCst->getValue()) in foldLogOpOfMaskedICmps()
668 CCst = cast<ConstantInt>(ConstantExpr::getXor(BCst, CCst)); in foldLogOpOfMaskedICmps()
674 if (((BCst->getValue() & DCst->getValue()) & in foldLogOpOfMaskedICmps()