Home
last modified time | relevance | path

Searched refs:BOp1 (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2597 Value *BOp0 = BO->getOperand(0), *BOp1 = BO->getOperand(1); in foldICmpBinOpEqualityWithConstant() local
2604 if (match(BOp1, m_APInt(BOC)) && BOC->sgt(1) && BOC->isPowerOf2()) { in foldICmpBinOpEqualityWithConstant()
2605 Value *NewRem = Builder.CreateURem(BOp0, BOp1, BO->getName()); in foldICmpBinOpEqualityWithConstant()
2614 if (match(BOp1, m_APInt(BOC))) { in foldICmpBinOpEqualityWithConstant()
2616 Constant *SubC = ConstantExpr::getSub(RHS, cast<Constant>(BOp1)); in foldICmpBinOpEqualityWithConstant()
2622 if (Value *NegVal = dyn_castNegVal(BOp1)) in foldICmpBinOpEqualityWithConstant()
2625 return new ICmpInst(Pred, NegVal, BOp1); in foldICmpBinOpEqualityWithConstant()
2627 Value *Neg = Builder.CreateNeg(BOp1); in foldICmpBinOpEqualityWithConstant()
2636 if (Constant *BOC = dyn_cast<Constant>(BOp1)) { in foldICmpBinOpEqualityWithConstant()
2642 return new ICmpInst(Pred, BOp0, BOp1); in foldICmpBinOpEqualityWithConstant()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1392 Value *BOp0 = BO->getOperand(0), *BOp1 = BO->getOperand(1); in visitICmpInstWithInstAndIntCst() local
1394 if (Value *NegVal = dyn_castNegVal(BOp1)) in visitICmpInstWithInstAndIntCst()
1397 return new ICmpInst(ICI.getPredicate(), NegVal, BOp1); in visitICmpInstWithInstAndIntCst()
1399 Value *Neg = Builder->CreateNeg(BOp1); in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2229 Value *BOp0 = BO->getOperand(0), *BOp1 = BO->getOperand(1); in visitICmpInstWithInstAndIntCst() local
2231 if (Value *NegVal = dyn_castNegVal(BOp1)) in visitICmpInstWithInstAndIntCst()
2234 return new ICmpInst(ICI.getPredicate(), NegVal, BOp1); in visitICmpInstWithInstAndIntCst()
2236 Value *Neg = Builder->CreateNeg(BOp1); in visitICmpInstWithInstAndIntCst()