Home
last modified time | relevance | path

Searched refs:LHSCst (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp899 ConstantInt *LHSCst = dyn_cast<ConstantInt>(LHS->getOperand(1)); in FoldAndOfICmps() local
901 if (!LHSCst || !RHSCst) return nullptr; in FoldAndOfICmps()
903 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()
907 if ((LHSCC == ICmpInst::ICMP_ULT && LHSCst->getValue().isPowerOf2()) || in FoldAndOfICmps()
908 (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero())) { in FoldAndOfICmps()
910 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()
927 BigCst = LHSCst; in FoldAndOfICmps()
930 SmallCst = LHSCst; in FoldAndOfICmps()
969 ShouldSwap = LHSCst->getValue().sgt(RHSCst->getValue()); in FoldAndOfICmps()
971 ShouldSwap = LHSCst->getValue().ugt(RHSCst->getValue()); in FoldAndOfICmps()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolution.cpp2821 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local
2822 if (LHSCst == RHSCst) { in getUDivExactExpr()
2831 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()
2833 LHSCst = in getUDivExactExpr()
2834 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()
2838 Operands.push_back(LHSCst); in getUDivExactExpr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolution.cpp3357 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local
3358 if (LHSCst == RHSCst) { in getUDivExactExpr()
3367 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()
3369 LHSCst = in getUDivExactExpr()
3370 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()
3374 Operands.push_back(LHSCst); in getUDivExactExpr()
/external/llvm-project/llvm/lib/Analysis/
DScalarEvolution.cpp3272 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local
3273 if (LHSCst == RHSCst) { in getUDivExactExpr()
3282 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()
3284 LHSCst = in getUDivExactExpr()
3285 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()
3289 Operands.push_back(LHSCst); in getUDivExactExpr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp306 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate() local
308 return Match(LHSCst, RHSCst); in matchBinaryPredicate()
321 auto *LHSCst = dyn_cast<ConstantSDNode>(LHSOp); in matchBinaryPredicate() local
323 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate()
328 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp317 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate() local
319 return Match(LHSCst, RHSCst); in matchBinaryPredicate()
332 auto *LHSCst = dyn_cast<ConstantSDNode>(LHSOp); in matchBinaryPredicate() local
334 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate()
339 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()