Home
last modified time | relevance | path

Searched refs:CLHS (Results 1 – 9 of 9) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp2044 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
2046 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
2091 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
2093 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
2108 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local
2109 if (!CLHS) in visitBinaryOperator()
2110 CLHS = SimplifiedValues.lookup(LHS); in visitBinaryOperator()
2117 SimpleV = simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
2121 simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp139 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
140 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
142 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
609 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local
622 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3742 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in simplifyICmpInst() local
4030 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in simplifyICmpInst() local
4033 Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) == in simplifyICmpInst()
4034 Q.DL.getTypeSizeInBits(CLHS->getType())) in simplifyICmpInst()
4035 if (auto *C = computePointerICmp(Pred, CLHS->getPointerOperand(), in simplifyICmpInst()
[all …]
H A DValueTracking.cpp3453 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local
3454 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl()
8208 const APInt *CLHS, *CRHS; in isTruePredicate() local
8209 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
8210 return CLHS->ule(*CRHS); in isTruePredicate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp909 const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num); in optimizeWithRsq() local
910 if (!CLHS) in optimizeWithRsq()
918 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq()
951 if (const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num)) { in optimizeWithRcp() local
953 if (CLHS->isExactlyValue(1.0) || in optimizeWithRcp()
954 (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRcp()
H A DSIISelLowering.cpp10266 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local
10273 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
10290 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
12019 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
12021 if (!CLHS || !CRHS) in performOrCombine()
12027 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
14095 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in performFDivCombine() local
14097 if (CLHS->isExactlyValue(1.0) || in performFDivCombine()
14098 (IsNegative = CLHS->isExactlyValue(-1.0))) { in performFDivCombine()
H A DAMDGPULegalizerInfo.cpp4673 if (auto CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local
4685 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV()
4695 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp216 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
218 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
318 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
320 return Builder.CreatePtrAdd(CLHS, CRHS); in expandAddToGEP()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.cpp3602 auto *CLHS = dyn_cast<ConstantSDNode>(LHS); in performCombineVMergeAndVOps() local
3604 if (!CLHS || !CRHS) in performCombineVMergeAndVOps()
3606 return CLHS->getZExtValue() <= CRHS->getZExtValue() ? LHS : RHS; in performCombineVMergeAndVOps()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp4592 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local
4594 if (CLHS->isZero()) { in ComputeNumSignBits()