Searched refs:LHSCst (Results 1 – 5 of 5) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 741 ConstantInt *LHSCst = dyn_cast<ConstantInt>(LHS->getOperand(1)); in FoldAndOfICmps() local 743 if (LHSCst == 0 || RHSCst == 0) return 0; in FoldAndOfICmps() 745 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps() 749 LHSCst->getValue().isPowerOf2()) { in FoldAndOfICmps() 751 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps() 755 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero()) { in FoldAndOfICmps() 757 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps() 761 if (LHSCC == ICmpInst::ICMP_SLT && LHSCst->isZero()) { in FoldAndOfICmps() 763 return Builder->CreateICmp(LHSCC, NewAnd, LHSCst); in FoldAndOfICmps() 767 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldAndOfICmps() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 899 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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 294 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate() local 296 return Match(LHSCst, RHSCst); in matchBinaryPredicate() 304 auto *LHSCst = dyn_cast<ConstantSDNode>(LHS.getOperand(i)); in matchBinaryPredicate() local 306 if (!LHSCst || !RHSCst) in matchBinaryPredicate() 308 if (LHSCst->getValueType(0) != SVT || 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 | 2821 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-7.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3287 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local 3288 if (LHSCst == RHSCst) { in getUDivExactExpr() 3297 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr() 3299 LHSCst = in getUDivExactExpr() 3300 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr() 3304 Operands.push_back(LHSCst); in getUDivExactExpr()
|