Home
last modified time | relevance | path

Searched refs:BCst (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp236 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getMaskedICmpType() local
240 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() local
460 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 …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp446 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getTypeOfMaskedICmp() local
451 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() local
750 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 …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp495 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getTypeOfMaskedICmp() local
500 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() local
687 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()