/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InlineCost.cpp | 2100 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitSub() local 2101 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub() 2119 Constant *CRHS = dyn_cast<Constant>(RHS); in visitBinaryOperator() local 2120 if (!CRHS) in visitBinaryOperator() 2121 CRHS = SimplifiedValues.lookup(RHS); in visitBinaryOperator() 2125 SimpleV = simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator() 2129 simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
|
H A D | InstructionSimplify.cpp | 140 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local 141 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare() 144 CRHS == LHS; in isSameCompare() 611 if (auto *CRHS = dyn_cast<Constant>(Op1)) { in foldOrCommuteConstant() local 621 return ConstantFoldFPInstOperands(Opcode, CLHS, CRHS, Q.DL, Q.CxtI); in foldOrCommuteConstant() 623 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant() 3758 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in simplifyICmpInst() local 3759 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in simplifyICmpInst() 4038 if (auto *CRHS = dyn_cast<PtrToIntOperator>(RHS)) in simplifyICmpInst() local 4039 if (CLHS->getPointerOperandType() == CRHS->getPointerOperandType() && in simplifyICmpInst() [all …]
|
H A D | ValueTracking.cpp | 3926 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1))) in ComputeNumSignBitsImpl() local 3927 if (CRHS->isAllOnesValue()) { in ComputeNumSignBitsImpl() 4772 const APFloat *CRHS; in computeKnownFPClassFromCond() local 4774 if (match(Cond, m_FCmp(Pred, m_Value(LHS), m_APFloat(CRHS)))) { in computeKnownFPClassFromCond() 4776 Pred, *CxtI->getParent()->getParent(), LHS, *CRHS, LHS != V); in computeKnownFPClassFromCond() 8941 const APInt *CLHS, *CRHS; in isTruePredicate() local 8943 match(RHS, m_NSWAddLike(m_Specific(X), m_APInt(CRHS)))) in isTruePredicate() 8944 return CLHS->sle(*CRHS); in isTruePredicate() 8982 const APInt *CLHS, *CRHS; in isTruePredicate() local 8984 match(RHS, m_NUWAddLike(m_Specific(X), m_APInt(CRHS)))) in isTruePredicate() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIISelLowering.cpp | 11406 const ConstantSDNode *CRHS) const { in splitBinaryBitConstantOp() 11407 uint64_t Val = CRHS->getZExtValue(); in splitBinaryBitConstantOp() 11414 (CRHS->hasOneUse() && !TII->isInlineConstant(CRHS->getAPIntValue()))) { in splitBinaryBitConstantOp() 11515 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); in performAndCombine() local 11516 if (VT == MVT::i64 && CRHS) { in performAndCombine() 11518 = splitBinaryBitConstantOp(DCI, SDLoc(N), ISD::AND, LHS, CRHS)) in performAndCombine() 11522 if (CRHS && VT == MVT::i32) { in performAndCombine() 11527 uint64_t Mask = CRHS->getZExtValue(); in performAndCombine() 11533 unsigned NB = CRHS->getAPIntValue().countr_zero(); in performAndCombine() 11545 DAG.getConstant(NB, SDLoc(CRHS), MVT::i32)); in performAndCombine() [all …]
|
H A D | SIISelLowering.h | 186 const ConstantSDNode *CRHS) const;
|
H A D | AMDGPUISelLowering.cpp | 1677 ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in combineFMinMaxLegacy() local 1688 if (LHS == NegTrue && CFalse && CRHS) { in combineFMinMaxLegacy() 1689 APFloat NegRHS = neg(CRHS->getValueAPF()); in combineFMinMaxLegacy() 4567 ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in foldFreeOpFromSelect() local 4568 if ((LHS.getOpcode() == ISD::FNEG || LHS.getOpcode() == ISD::FABS) && CRHS && in foldFreeOpFromSelect() 4588 if (LHS.getOpcode() == ISD::FABS && CRHS->isNegative()) in foldFreeOpFromSelect() 4598 getConstantNegateCost(CRHS) != NegatibleCost::Cheaper) in foldFreeOpFromSelect()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 256 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local 257 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop() 358 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local 359 return Builder.CreatePtrAdd(CLHS, CRHS); in expandAddToGEP()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 3824 auto *CRHS = dyn_cast<ConstantSDNode>(RHS); in performCombineVMergeAndVOps() local 3825 if (!CLHS || !CRHS) in performCombineVMergeAndVOps() 3827 return CLHS->getZExtValue() <= CRHS->getZExtValue() ? LHS : RHS; in performCombineVMergeAndVOps()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 4768 if (ConstantSDNode *CRHS = in ComputeNumSignBits() local 4770 if (CRHS->isAllOnes()) { in ComputeNumSignBits()
|