/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InlineCost.cpp | 2099 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local 2101 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub() 2116 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local 2117 if (!CLHS) in visitBinaryOperator() 2118 CLHS = SimplifiedValues.lookup(LHS); 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() 143 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare() 610 if (auto *CLHS = dyn_cast<Constant>(Op0)) { 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() 3757 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in simplifyICmpInst() local 3759 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in simplifyICmpInst() 4037 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in simplifyICmpInst() local 4039 if (CLHS->getPointerOperandType() == CRHS->getPointerOperandType() && in simplifyICmpInst() [all …]
|
H A D | ValueTracking.cpp | 3953 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local 3954 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl() 8941 const APInt *CLHS, *CRHS; in isTruePredicate() local 8942 if (match(LHS, m_NSWAddLike(m_Value(X), m_APInt(CLHS))) && in isTruePredicate() 8944 return CLHS->sle(*CRHS); in isTruePredicate() 8982 const APInt *CLHS, *CRHS; in isTruePredicate() local 8983 if (match(LHS, m_NUWAddLike(m_Value(X), m_APInt(CLHS))) && in isTruePredicate() 8985 return CLHS->ule(*CRHS); in isTruePredicate()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 911 const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num); in optimizeWithRsq() local 912 if (!CLHS) in optimizeWithRsq() 920 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq() 953 if (const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num)) { in optimizeWithRcp() local 955 if (CLHS->isExactlyValue(1.0) || in optimizeWithRcp() 956 (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRcp()
|
H A D | SIISelLowering.cpp | 10455 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local 10462 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV() 10479 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV() 12289 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local 12291 if (!CLHS || !CRHS) in performOrCombine() 12297 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine() 14410 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in performFDivCombine() local 14412 if (CLHS->isExactlyValue(1.0) || in performFDivCombine() 14413 (IsNegative = CLHS->isExactlyValue(-1.0))) { in performFDivCombine()
|
H A D | AMDGPULegalizerInfo.cpp | 4789 if (auto CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local 4801 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV() 4811 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 255 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local 257 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop() 357 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local 359 return Builder.CreatePtrAdd(CLHS, CRHS); in expandAddToGEP()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 3823 auto *CLHS = dyn_cast<ConstantSDNode>(LHS); 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 | 4793 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local 4795 if (CLHS->isZero()) { in ComputeNumSignBits()
|