Searched refs:CRHS (Results 1 - 10 of 10) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp194 if (Constant *CRHS = dyn_cast<Constant>(RHS)) {
195 if (CLHS->getType() == CRHS->getType()) {
196 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) {
H A DInlineCost.cpp1441 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); local
1442 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) {
1475 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); local
1476 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) {
1494 Constant *CRHS = dyn_cast<Constant>(RHS); local
1495 if (!CRHS)
1496 CRHS = SimplifiedValues.lookup(RHS);
1500 SimpleV = SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS,
1504 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS
[all...]
H A DInstructionSimplify.cpp133 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); local
134 if (CPred == Pred && CLHS == LHS && CRHS == RHS)
137 CRHS == LHS;
605 if (auto *CRHS = dyn_cast<Constant>(Op1))
606 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL);
3316 if (Constant *CRHS = dyn_cast<Constant>(RHS))
3317 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI);
3570 if (auto *CRHS = dyn_cast<PtrToIntOperator>(RHS))
3573 Q.DL.getTypeSizeInBits(CRHS->getPointerOperandType()) ==
3574 Q.DL.getTypeSizeInBits(CRHS
[all...]
H A DValueTracking.cpp2861 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1)))
2862 if (CRHS->isAllOnesValue()) {
5842 const APInt *CLHS, *CRHS; local
5843 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS))
5844 return CLHS->ule(*CRHS);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp8633 const ConstantSDNode *CRHS) const {
8634 uint64_t Val = CRHS->getZExtValue();
8641 (CRHS->hasOneUse() && !TII->isInlineConstant(CRHS->getAPIntValue()))) {
8744 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); local
8745 if (VT == MVT::i64 && CRHS) {
8747 = splitBinaryBitConstantOp(DCI, SDLoc(N), ISD::AND, LHS, CRHS))
8751 if (CRHS && VT == MVT::i32) {
8756 uint64_t Mask = CRHS->getZExtValue();
8762 unsigned NB = CRHS
8935 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS.getOperand(1)); local
9035 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(N->getOperand(1)); local
9054 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); local
9489 auto *CRHS = dyn_cast<ConstantFPSDNode>(N0.getOperand(1)); local
10345 auto CRHS = dyn_cast<ConstantSDNode>(RHS); local
10408 const ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); local
[all...]
H A DSIISelLowering.h150 const ConstantSDNode *CRHS) const;
H A DAMDGPUISelLowering.cpp3532 ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); local
3533 if ((LHS.getOpcode() == ISD::FNEG || LHS.getOpcode() == ISD::FABS) && CRHS) {
3554 else if (CRHS->isNegative())
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp1335 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) {
1341 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) {
1344 const APInt &AddRHSV = CRHS->getValue();
1354 Value *NewAdd = Builder.CreateAdd(X, CRHS, LHS->getName());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp181 if (Constant *CRHS = dyn_cast<Constant>(RHS))
182 return ConstantExpr::get(Opcode, CLHS, CRHS);
530 if (Constant *CRHS = dyn_cast<Constant>(Idx))
532 CLHS, CRHS);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3841 if (ConstantSDNode *CRHS =
3843 if (CRHS->isAllOnesValue()) {

Completed in 404 milliseconds