Searched refs:RHSCst (Results 1 – 8 of 8) 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/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/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/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | CombinerHelper.cpp | 2203 if (auto RHSCst = getConstantVRegVal(RHS, MRI)) { in matchCombineConstPtrAddToI2P() local 2206 NewCst = Cst + *RHSCst; in matchCombineConstPtrAddToI2P()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3354 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/llvm-project/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3269 if (const SCEVConstant *RHSCst = dyn_cast<SCEVConstant>(RHS)) { in getUDivExactExpr() local 3273 if (LHSCst == RHSCst) { in getUDivExactExpr() 3282 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr() 3286 RHSCst = in getUDivExactExpr() 3287 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr() 3292 RHS = RHSCst; in getUDivExactExpr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 307 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()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 318 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS)) in matchBinaryPredicate() local 319 return Match(LHSCst, RHSCst); in matchBinaryPredicate() 333 auto *RHSCst = dyn_cast<ConstantSDNode>(RHSOp); in matchBinaryPredicate() local 334 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate() 339 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()
|