Home
last modified time | relevance | path

Searched refs:CRHS (Results 1 – 23 of 23) sorted by relevance

/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp189 if (Constant *CRHS = dyn_cast<Constant>(RHS)) { 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()
101 CRHS == LHS; in isSameCompare()
532 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifyAddInst() local
533 return ConstantFoldBinaryOpOperands(Instruction::Add, CLHS, CRHS, Q.DL); in SimplifyAddInst()
666 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifySubInst() local
667 return ConstantFoldBinaryOpOperands(Instruction::Sub, CLHS, CRHS, Q.DL); in SimplifySubInst()
790 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifyFAddInst() local
791 return ConstantFoldBinaryOpOperands(Instruction::FAdd, CLHS, CRHS, Q.DL); in SimplifyFAddInst()
829 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifyFSubInst() local
[all …]
DInlineCost.cpp675 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in visitCmpInst() local
677 ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
697 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitCmpInst() local
698 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
743 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitSub() local
744 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
DScalarEvolutionExpander.cpp175 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
176 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
502 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
504 CLHS, CRHS); in expandAddToGEP()
DValueTracking.cpp2079 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1))) in ComputeNumSignBits() local
2080 if (CRHS->isAllOnesValue()) { 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp194 if (Constant *CRHS = dyn_cast<Constant>(RHS)) { in visitCmpInst() local
195 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
196 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
DInlineCost.cpp998 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitCmpInst() local
999 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1044 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitSub() local
1045 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1063 Constant *CRHS = dyn_cast<Constant>(RHS); in visitBinaryOperator() local
1064 if (!CRHS) in visitBinaryOperator()
1065 CRHS = SimplifiedValues.lookup(RHS); in visitBinaryOperator()
1070 CRHS ? CRHS : RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
1073 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
DInstructionSimplify.cpp129 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
130 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
133 CRHS == LHS; in isSameCompare()
560 if (auto *CRHS = dyn_cast<Constant>(Op1)) in foldOrCommuteConstant() local
561 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3191 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in SimplifyICmpInst() local
3192 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in SimplifyICmpInst()
3417 if (auto *CRHS = dyn_cast<PtrToIntOperator>(RHS)) in SimplifyICmpInst() local
3420 Q.DL.getTypeSizeInBits(CRHS->getPointerOperandType()) == in SimplifyICmpInst()
3421 Q.DL.getTypeSizeInBits(CRHS->getType())) in SimplifyICmpInst()
[all …]
DScalarEvolutionExpander.cpp175 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
176 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
515 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
517 CLHS, CRHS); in expandAddToGEP()
DValueTracking.cpp2351 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1))) in ComputeNumSignBitsImpl() local
2352 if (CRHS->isAllOnesValue()) { in ComputeNumSignBitsImpl()
4927 const APInt *CLHS, *CRHS; in isTruePredicate() local
4928 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
4929 return CLHS->ule(*CRHS); in isTruePredicate()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp230 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
233 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
238 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) { in visitAdd()
241 const APInt &AddRHSV = CRHS->getValue(); in visitAdd()
251 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp546 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAddInst() local
547 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAddInst()
615 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifySubInst() local
616 Constant *Ops[] = { CLHS, CRHS }; in SimplifySubInst()
735 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyMulInst() local
736 Constant *Ops[] = { CLHS, CRHS }; in SimplifyMulInst()
1158 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAndInst() local
1159 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAndInst()
1247 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyOrInst() local
1248 Constant *Ops[] = { CLHS, CRHS }; in SimplifyOrInst()
[all …]
DScalarEvolutionExpander.cpp130 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
131 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
500 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
501 return ConstantExpr::getGetElementPtr(CLHS, CRHS); in expandAddToGEP()
DValueTracking.cpp971 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(U->getOperand(1))) in ComputeNumSignBits() local
972 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1146 if (Constant *CRHS = dyn_cast<Constant>(RHS)) { in visitAdd() local
1149 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
1152 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1158 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) { in visitAdd()
1161 const APInt &AddRHSV = CRHS->getValue(); in visitAdd()
1171 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp6275 const ConstantSDNode *CRHS) const { in splitBinaryBitConstantOp()
6276 uint64_t Val = CRHS->getZExtValue(); in splitBinaryBitConstantOp()
6283 (CRHS->hasOneUse() && !TII->isInlineConstant(CRHS->getAPIntValue()))) { in splitBinaryBitConstantOp()
6386 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); in performAndCombine() local
6387 if (VT == MVT::i64 && CRHS) { in performAndCombine()
6389 = splitBinaryBitConstantOp(DCI, SDLoc(N), ISD::AND, LHS, CRHS)) in performAndCombine()
6393 if (CRHS && VT == MVT::i32) { in performAndCombine()
6398 uint64_t Mask = CRHS->getZExtValue(); in performAndCombine()
6404 unsigned NB = CRHS->getAPIntValue().countTrailingZeros(); in performAndCombine()
6416 DAG.getConstant(NB, SDLoc(CRHS), MVT::i32)); in performAndCombine()
[all …]
DSIISelLowering.h126 const ConstantSDNode *CRHS) const;
DAMDGPUISelLowering.cpp3365 ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in foldFreeOpFromSelect() local
3366 if ((LHS.getOpcode() == ISD::FNEG || LHS.getOpcode() == ISD::FABS) && CRHS) { in foldFreeOpFromSelect()
3387 else if (CRHS->isNegative()) in foldFreeOpFromSelect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1238 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1244 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) { in visitAdd()
1247 const APInt &AddRHSV = CRHS->getValue(); in visitAdd()
1257 Value *NewAdd = Builder.CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
/external/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp2618 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS.getOperand(1)); in performOrCombine() local
2619 if (!CLHS || !CRHS) in performOrCombine()
2625 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
2843 const ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in performSetCCCombine() local
2844 if (!CRHS) in performSetCCCombine()
2847 const APFloat &APF = CRHS->getValueAPF(); in performSetCCCombine()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2205 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
2206 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2659 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
2660 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp3397 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
3398 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()