| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelperCompares.cpp | 101 if (auto CLHS = GIConstant::getConstant(LHS, MRI)) { in matchCanonicalizeICmp() local 103 return constantFoldICmp(*Cmp, *CLHS, *CRHS, MatchInfo); in matchCanonicalizeICmp() 127 if (auto CLHS = GFConstant::getConstant(LHS, MRI)) { in matchCanonicalizeFCmp() local 129 return constantFoldFCmp(*Cmp, *CLHS, *CRHS, MatchInfo); in matchCanonicalizeFCmp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 915 const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num); in optimizeWithRsq() local 916 if (!CLHS) in optimizeWithRsq() 924 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq() 957 if (const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num)) { in optimizeWithRcp() local 959 if (CLHS->isExactlyValue(1.0) || in optimizeWithRcp() 960 (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRcp()
|
| H A D | SIISelLowering.cpp | 11112 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local 11119 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV() 11136 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV() 13059 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local 13061 if (!CLHS || !CRHS) in performOrCombine() 13068 (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine() 15345 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in performFDivCombine() local 15347 if (CLHS->isExactlyValue(1.0) || in performFDivCombine() 15348 (IsNegative = CLHS->isExactlyValue(-1.0))) { in performFDivCombine()
|
| H A D | AMDGPULegalizerInfo.cpp | 4847 if (const auto *CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local 4859 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV() 4869 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InlineCost.cpp | 2265 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local 2267 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub() 2282 Constant *CLHS = getDirectOrSimplifiedValue<Constant>(LHS); in visitBinaryOperator() local 2287 SimpleV = simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator() 2291 simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
|
| H A D | InstructionSimplify.cpp | 101 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local 102 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare() 104 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare() 567 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local 578 return ConstantFoldFPInstOperands(Opcode, CLHS, CRHS, Q.DL, Q.CxtI); in foldOrCommuteConstant() 580 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant() 3747 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in simplifyICmpInst() local 3749 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in simplifyICmpInst() 4033 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in simplifyICmpInst() local 4035 if (CLHS->getPointerOperandType() == CRHS->getPointerOperandType() && in simplifyICmpInst() [all …]
|
| H A D | ValueTracking.cpp | 4219 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local 4220 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl() 9177 const APInt *CLHS, *CRHS; in isTruePredicate() local 9178 if (match(LHS, m_NSWAddLike(m_Value(X), m_APInt(CLHS))) && in isTruePredicate() 9180 return CLHS->sle(*CRHS); in isTruePredicate() 9218 const APInt *CLHS, *CRHS; in isTruePredicate() local 9219 if (match(LHS, m_NUWAddLike(m_Value(X), m_APInt(CLHS))) && in isTruePredicate() 9221 return CLHS->ule(*CRHS); in isTruePredicate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | ScalarEvolutionExpander.cpp | 267 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local 269 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop() 367 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local 369 return Builder.CreatePtrAdd(CLHS, CRHS, "", NW); in expandAddToGEP()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 5068 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local 5070 if (CLHS->isZero()) { in ComputeNumSignBits()
|