Home
last modified time | relevance | path

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

/external/llvm-project/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp193 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local
195 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
196 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
DInlineCost.cpp1440 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
1442 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1474 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
1476 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1491 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local
1492 if (!CLHS) in visitBinaryOperator()
1493 CLHS = SimplifiedValues.lookup(LHS); in visitBinaryOperator()
1500 SimpleV = SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
1504 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
DInstructionSimplify.cpp133 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
134 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
136 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
596 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local
598 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3293 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in SimplifyICmpInst() local
3295 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in SimplifyICmpInst()
3547 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in SimplifyICmpInst() local
3549 if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) == in SimplifyICmpInst()
3550 Q.DL.getTypeSizeInBits(CLHS->getType()) && in SimplifyICmpInst()
[all …]
DValueTracking.cpp2855 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local
2856 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl()
6033 const APInt *CLHS, *CRHS; in isTruePredicate() local
6034 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
6035 return CLHS->ule(*CRHS); in isTruePredicate()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp192 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local
194 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
195 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
DInlineCost.cpp1278 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
1280 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1312 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
1314 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1329 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local
1330 if (!CLHS) in visitBinaryOperator()
1331 CLHS = SimplifiedValues.lookup(LHS); in visitBinaryOperator()
1338 SimpleV = SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
1342 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
DInstructionSimplify.cpp133 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
134 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
136 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
604 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local
606 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3228 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in SimplifyICmpInst() local
3230 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in SimplifyICmpInst()
3461 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in SimplifyICmpInst() local
3463 if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) == in SimplifyICmpInst()
3464 Q.DL.getTypeSizeInBits(CLHS->getType()) && in SimplifyICmpInst()
[all …]
DScalarEvolutionExpander.cpp173 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
175 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
518 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
521 CLHS, CRHS); in expandAddToGEP()
DValueTracking.cpp2637 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local
2638 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl()
5360 const APInt *CLHS, *CRHS; in isTruePredicate() local
5361 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
5362 return CLHS->ule(*CRHS); in isTruePredicate()
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp188 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local
190 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
191 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
DInstructionSimplify.cpp97 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
98 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
100 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
531 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyAddInst() local
533 return ConstantFoldBinaryOpOperands(Instruction::Add, CLHS, CRHS, Q.DL); in SimplifyAddInst()
665 if (Constant *CLHS = dyn_cast<Constant>(Op0)) in SimplifySubInst() local
667 return ConstantFoldBinaryOpOperands(Instruction::Sub, CLHS, CRHS, Q.DL); in SimplifySubInst()
789 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyFAddInst() local
791 return ConstantFoldBinaryOpOperands(Instruction::FAdd, CLHS, CRHS, Q.DL); in SimplifyFAddInst()
828 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyFSubInst() local
[all …]
DInlineCost.cpp674 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local
677 ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
696 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
698 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
742 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
744 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
DValueTracking.cpp240 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(Op0)) { in computeKnownBitsAddSub() local
244 if (!CLHS->getValue().isNegative()) { in computeKnownBitsAddSub()
246 unsigned NLZ = (CLHS->getValue()+1).countLeadingZeros(); in computeKnownBitsAddSub()
255 unsigned NLZ2 = CLHS->getValue().countLeadingZeros(); in computeKnownBitsAddSub()
2104 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBits() local
2105 if (CLHS->isNullValue()) { in ComputeNumSignBits()
4008 const APInt *CLHS, *CRHS; in isTruePredicate() local
4009 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
4010 return CLHS->ule(*CRHS); in isTruePredicate()
DScalarEvolutionExpander.cpp174 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
176 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
501 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
504 CLHS, CRHS); in expandAddToGEP()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp668 if (const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num)) { in optimizeWithRcp() local
670 if (CLHS->isExactlyValue(1.0)) { in optimizeWithRcp()
689 if (CLHS->isExactlyValue(-1.0)) { in optimizeWithRcp()
DAMDGPULegalizerInfo.cpp3072 if (auto CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local
3074 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV()
3084 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
DSIISelLowering.cpp8224 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local
8225 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
8245 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
9171 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
9173 if (!CLHS || !CRHS) in performOrCombine()
9179 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
/external/llvm-project/llvm/lib/Transforms/Utils/
DScalarEvolutionExpander.cpp200 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
202 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
549 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
552 CLHS, CRHS); in expandAddToGEP()
/external/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp2123 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in LowerFastFDIV() local
2125 CLHS->isExactlyValue(1.0)) { in LowerFastFDIV()
2617 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
2619 if (!CLHS || !CRHS) in performOrCombine()
2625 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp1960 if (auto CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local
1962 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV()
1972 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
DSIISelLowering.cpp7555 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local
7557 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
7577 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
8457 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
8459 if (!CLHS || !CRHS) in performOrCombine()
8465 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2335 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) { in computeKnownBits() local
2339 if (CLHS->getAPIntValue().isNonNegative()) { in computeKnownBits()
2340 unsigned NLZ = (CLHS->getAPIntValue()+1).countLeadingZeros(); in computeKnownBits()
2349 unsigned NLZ2 = CLHS->getAPIntValue().countLeadingZeros(); in computeKnownBits()
2684 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) in ComputeNumSignBits() local
2685 if (CLHS->isNullValue()) { in ComputeNumSignBits()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp3804 if (ConstantSDNode *CLHS = isConstOrConstSplat(Op.getOperand(0))) in ComputeNumSignBits() local
3805 if (CLHS->isNullValue()) { in ComputeNumSignBits()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp3781 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local
3783 if (CLHS->isNullValue()) { in ComputeNumSignBits()