Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp465 ConstantInt *DCst = dyn_cast<ConstantInt>(D); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() local
466 if (!DCst) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
479 ECst = cast<ConstantInt>(ConstantExpr::getXor(DCst, ECst)); 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()
512 APInt BandBxorDorE = (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())) | in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
533 if (!IsSubSetOrEqual(BCst, DCst) && !IsSuperSetOrEqual(BCst, DCst)) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp751 ConstantInt *DCst = dyn_cast<ConstantInt>(D); in foldLogOpOfMaskedICmps() local
752 if (!DCst) return nullptr; in foldLogOpOfMaskedICmps()
760 APInt NewMask = BCst->getValue() & DCst->getValue(); in foldLogOpOfMaskedICmps()
764 else if (NewMask == DCst->getValue()) in foldLogOpOfMaskedICmps()
772 APInt NewMask = BCst->getValue() | DCst->getValue(); in foldLogOpOfMaskedICmps()
776 else if (NewMask == DCst->getValue()) in foldLogOpOfMaskedICmps()
797 ECst = cast<ConstantInt>(ConstantExpr::getXor(DCst, ECst)); in foldLogOpOfMaskedICmps()
800 if (((BCst->getValue() & DCst->getValue()) & in foldLogOpOfMaskedICmps()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp688 ConstantInt *DCst = dyn_cast<ConstantInt>(D); in foldLogOpOfMaskedICmps() local
689 if (DCst == 0) return 0; in foldLogOpOfMaskedICmps()
701 ECst = dyn_cast<ConstantInt>( ConstantExpr::getXor(DCst, ECst) ); in foldLogOpOfMaskedICmps()
703 ConstantExpr::getAnd(ConstantExpr::getAnd(BCst, DCst), in foldLogOpOfMaskedICmps()