/external/llvm/lib/Analysis/ |
D | LoopUnrollAnalyzer.cpp | 189 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()
|
D | InstructionSimplify.cpp | 97 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 …]
|
D | InlineCost.cpp | 675 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()
|
D | ScalarEvolutionExpander.cpp | 175 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()
|
D | ValueTracking.cpp | 2079 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/ |
D | LoopUnrollAnalyzer.cpp | 194 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()
|
D | InlineCost.cpp | 998 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()
|
D | InstructionSimplify.cpp | 129 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 …]
|
D | ScalarEvolutionExpander.cpp | 175 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()
|
D | ValueTracking.cpp | 2351 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/ |
D | InstCombineAddSub.cpp | 230 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/ |
D | InstructionSimplify.cpp | 546 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 …]
|
D | ScalarEvolutionExpander.cpp | 130 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()
|
D | ValueTracking.cpp | 971 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(U->getOperand(1))) in ComputeNumSignBits() local 972 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1146 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/ |
D | SIISelLowering.cpp | 6275 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 …]
|
D | SIISelLowering.h | 126 const ConstantSDNode *CRHS) const;
|
D | AMDGPUISelLowering.cpp | 3365 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/ |
D | InstCombineAddSub.cpp | 1238 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/ |
D | SIISelLowering.cpp | 2618 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/ |
D | SelectionDAG.cpp | 2205 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local 2206 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 2659 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/ |
D | SelectionDAG.cpp | 3397 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local 3398 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
|