/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1037 Value *RHSV = GEPRHS->getOperand(DiffOperand); in FoldGEPICmp() local 1039 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), LHSV, RHSV); in FoldGEPICmp() 1541 const APInt &RHSV = RHS->getValue(); in visitICmpInstWithInstAndIntCst() local 1545 if (RHS->isOne() && RHSV.getBitWidth() > 1) { in visitICmpInstWithInstAndIntCst() 1576 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst() 1577 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst() 1610 Builder->getInt(RHSV ^ SignBit)); in visitICmpInstWithInstAndIntCst() 1621 Builder->getInt(RHSV ^ NotSignBit)); in visitICmpInstWithInstAndIntCst() 1628 XorCst->getValue() == ~RHSV && (RHSV + 1).isPowerOf2()) in visitICmpInstWithInstAndIntCst() 1634 XorCst->getValue() == -RHSV && RHSV.isPowerOf2()) in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineAddSub.cpp | 1126 if (Value *RHSV = dyn_castNegVal(RHS)) { in visitAdd() local 1127 Value *NewAdd = Builder->CreateAdd(LHSV, RHSV, "sum"); in visitAdd()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 658 Value *RHSV = GEPRHS->getOperand(DiffOperand); in FoldGEPICmp() local 660 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), LHSV, RHSV); in FoldGEPICmp() 995 const APInt &RHSV = RHS->getValue(); in visitICmpInstWithInstAndIntCst() local 1023 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst() 1024 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst() 1058 RHSV ^ SignBit)); in visitICmpInstWithInstAndIntCst() 1070 RHSV ^ NotSignBit)); in visitICmpInstWithInstAndIntCst() 1089 (!AndCST->isNegative() && RHSV.isNonNegative())) { in visitICmpInstWithInstAndIntCst() 1105 if (ICI.isEquality() && RHSV.getActiveBits() <= Ty->getBitWidth()) { in visitICmpInstWithInstAndIntCst() 1183 if (Shift && Shift->hasOneUse() && RHSV == 0 && in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineMulDivRem.cpp | 687 if (ConstantVector *RHSV = dyn_cast<ConstantVector>(Op1)) { in visitSRem() local 688 unsigned VWidth = RHSV->getNumOperands(); in visitSRem() 692 if (ConstantInt *RHS = dyn_cast<ConstantInt>(RHSV->getOperand(i))) in visitSRem() 699 if (ConstantInt *RHS = dyn_cast<ConstantInt>(RHSV->getOperand(i))) { in visitSRem() 708 if (NewRHSV != RHSV) { in visitSRem()
|
D | InstCombineAddSub.cpp | 161 if (Value *RHSV = dyn_castNegVal(RHS)) { in visitAdd() local 162 Value *NewAdd = Builder->CreateAdd(LHSV, RHSV, "sum"); in visitAdd()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 715 Value *RHSV = B.CreateZExt(B.CreateLoad(castToCStr(RHS, B), "rhsc"), in optimizeMemCmp() local 717 return B.CreateSub(LHSV, RHSV, "chardiff"); in optimizeMemCmp() 736 Value *RHSV = in optimizeMemCmp() local 739 return B.CreateZExt(B.CreateICmpNE(LHSV, RHSV), CI->getType(), "memcmp"); in optimizeMemCmp()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 2478 unsigned RHSV = C->getZExtValue(); in Select() local 2479 if (!RHSV) break; in Select() 2480 if (isPowerOf2_32(RHSV-1)) { // 2^n+1? in Select() 2481 unsigned ShImm = Log2_32(RHSV-1); in Select() 2496 if (isPowerOf2_32(RHSV+1)) { // 2^n-1? in Select() 2497 unsigned ShImm = Log2_32(RHSV+1); in Select()
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 2767 unsigned RHSV = C->getZExtValue(); in Select() local 2768 if (!RHSV) break; in Select() 2769 if (isPowerOf2_32(RHSV-1)) { // 2^n+1? in Select() 2770 unsigned ShImm = Log2_32(RHSV-1); in Select() 2788 if (isPowerOf2_32(RHSV+1)) { // 2^n-1? in Select() 2789 unsigned ShImm = Log2_32(RHSV+1); in Select()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | SimplifyLibCalls.cpp | 753 Value *RHSV = B.CreateZExt(B.CreateLoad(CastToCStr(RHS, B), "rhsc"), in CallOptimizer() local 755 return B.CreateSub(LHSV, RHSV, "chardiff"); in CallOptimizer()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 2301 ValueList LHSV, RHSV; in vectorizeTree() local 2304 RHSV.push_back(cast<Instruction>(V)->getOperand(1)); in vectorizeTree() 2310 Value *R = vectorizeTree(RHSV); in vectorizeTree()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 6144 Value *LHS, Value *RHSV, const Loop *L, ICmpInst::Predicate Pred) { in computeShiftCompareExitLimit() argument 6145 ConstantInt *RHS = dyn_cast<ConstantInt>(RHSV); in computeShiftCompareExitLimit()
|