Searched refs:RHSCst (Results 1 – 7 of 7) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 900 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/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 742 ConstantInt *RHSCst = dyn_cast<ConstantInt>(RHS->getOperand(1)); in FoldAndOfICmps() local 743 if (LHSCst == 0 || RHSCst == 0) return 0; in FoldAndOfICmps() 745 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps() 784 SmallCst = RHSCst; in FoldAndOfICmps() 791 BigCst = RHSCst; in FoldAndOfICmps() 825 ConstantRange::makeICmpRegion(RHSCC, RHSCst->getValue()); in FoldAndOfICmps() 839 ShouldSwap = LHSCst->getValue().sgt(RHSCst->getValue()); in FoldAndOfICmps() 841 ShouldSwap = LHSCst->getValue().ugt(RHSCst->getValue()); in FoldAndOfICmps() 845 std::swap(LHSCst, RHSCst); in FoldAndOfICmps() 855 assert(LHSCst != RHSCst && "Compares not folded above?"); in FoldAndOfICmps() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 503 Constant *RHSCst = cast<Constant>(Cmp->getOperand(1)); in ComputeValueKnownInPredecessors() local 511 RHSCst, P, BB); in ComputeValueKnownInPredecessors()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 583 Constant *RHSCst = cast<Constant>(Cmp->getOperand(1)); in ComputeValueKnownInPredecessors() local 590 RHSCst, P, BB, CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessors()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 295 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS)) in matchBinaryPredicate() local 296 return Match(LHSCst, RHSCst); in matchBinaryPredicate() 305 auto *RHSCst = dyn_cast<ConstantSDNode>(RHS.getOperand(i)); in matchBinaryPredicate() local 306 if (!LHSCst || !RHSCst) in matchBinaryPredicate() 309 LHSCst->getValueType(0) != RHSCst->getValueType(0)) in matchBinaryPredicate() 311 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 2818 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-7.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3284 if (const SCEVConstant *RHSCst = dyn_cast<SCEVConstant>(RHS)) { in getUDivExactExpr() local 3288 if (LHSCst == RHSCst) { in getUDivExactExpr() 3297 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr() 3301 RHSCst = in getUDivExactExpr() 3302 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr() 3307 RHS = RHSCst; in getUDivExactExpr()
|