Home
last modified time | relevance | path

Searched refs:RHSCst (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp900 ConstantInt *RHSCst = dyn_cast<ConstantInt>(RHS->getOperand(1)); in FoldAndOfICmps() local
901 if (!LHSCst || !RHSCst) return nullptr; in FoldAndOfICmps()
903 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()
926 SmallCst = RHSCst; in FoldAndOfICmps()
931 BigCst = RHSCst; in FoldAndOfICmps()
969 ShouldSwap = LHSCst->getValue().sgt(RHSCst->getValue()); in FoldAndOfICmps()
971 ShouldSwap = LHSCst->getValue().ugt(RHSCst->getValue()); in FoldAndOfICmps()
975 std::swap(LHSCst, RHSCst); in FoldAndOfICmps()
985 assert(LHSCst != RHSCst && "Compares not folded above?"); in FoldAndOfICmps()
1001 if (LHSCst == SubOne(RHSCst)) // (X != 13 & X u< 14) -> X < 13 in FoldAndOfICmps()
[all …]
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp583 Constant *RHSCst = cast<Constant>(Cmp->getOperand(1)); in ComputeValueKnownInPredecessors() local
590 RHSCst, P, BB, CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessors()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp2818 if (const SCEVConstant *RHSCst = dyn_cast<SCEVConstant>(RHS)) { in getUDivExactExpr() local
2822 if (LHSCst == RHSCst) { in getUDivExactExpr()
2831 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()
2835 RHSCst = in getUDivExactExpr()
2836 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()
2841 RHS = RHSCst; in getUDivExactExpr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolution.cpp3354 if (const SCEVConstant *RHSCst = dyn_cast<SCEVConstant>(RHS)) { in getUDivExactExpr() local
3358 if (LHSCst == RHSCst) { in getUDivExactExpr()
3367 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()
3371 RHSCst = in getUDivExactExpr()
3372 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()
3377 RHS = RHSCst; in getUDivExactExpr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp307 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS)) in matchBinaryPredicate() local
308 return Match(LHSCst, RHSCst); in matchBinaryPredicate()
322 auto *RHSCst = dyn_cast<ConstantSDNode>(RHSOp); in matchBinaryPredicate() local
323 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate()
328 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()