Searched refs:BCst (Results 1 – 3 of 3) sorted by relevance
236 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getMaskedICmpType() local240 bool IsBPow2 = (BCst && !BCst->isZero() && BCst->getValue().isPowerOf2()); in getMaskedICmpType()271 } else if (BCst && CCst && ConstantExpr::getAnd(BCst, CCst) == CCst) { in getMaskedICmpType()459 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() local460 if (!BCst) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()483 if (BCst->getValue() == 0 || DCst->getValue() == 0) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()490 if ((BCst->getValue() & DCst->getValue()) == 0) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()509 if ((((BCst->getValue() & DCst->getValue()) & ECst->getValue()) == 0) && in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()510 (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())).isPowerOf2()) { in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()511 APInt BorD = BCst->getValue() | DCst->getValue(); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()[all …]
446 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getTypeOfMaskedICmp() local451 bool icmp_bbit = (BCst && !BCst->isZero() && in getTypeOfMaskedICmp()452 BCst->getValue().isPowerOf2()); in getTypeOfMaskedICmp()499 } else if (BCst && CCst && in getTypeOfMaskedICmp()500 ConstantExpr::getAnd(BCst, CCst) == CCst) { in getTypeOfMaskedICmp()749 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in foldLogOpOfMaskedICmps() local750 if (!BCst) return nullptr; in foldLogOpOfMaskedICmps()760 APInt NewMask = BCst->getValue() & DCst->getValue(); in foldLogOpOfMaskedICmps()762 if (NewMask == BCst->getValue()) in foldLogOpOfMaskedICmps()772 APInt NewMask = BCst->getValue() | DCst->getValue(); in foldLogOpOfMaskedICmps()[all …]
495 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getTypeOfMaskedICmp() local500 bool icmp_bbit = (BCst != 0 && !BCst->isZero() && in getTypeOfMaskedICmp()501 BCst->getValue().isPowerOf2()); in getTypeOfMaskedICmp()553 else if (BCst != 0 && CCst != 0 && in getTypeOfMaskedICmp()554 ConstantExpr::getAnd(BCst, CCst) == CCst) { in getTypeOfMaskedICmp()686 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in foldLogOpOfMaskedICmps() local687 if (BCst == 0) return 0; in foldLogOpOfMaskedICmps()697 CCst = dyn_cast<ConstantInt>( ConstantExpr::getXor(BCst, CCst) ); in foldLogOpOfMaskedICmps()703 ConstantExpr::getAnd(ConstantExpr::getAnd(BCst, DCst), in foldLogOpOfMaskedICmps()