Home
last modified time | relevance | path

Searched refs:LHSV (Results 1 – 7 of 7) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp160 if (Value *LHSV = dyn_castNegVal(LHS)) { in visitAdd() local
162 Value *NewAdd = Builder->CreateAdd(LHSV, RHSV, "sum"); in visitAdd()
166 return BinaryOperator::CreateSub(RHS, LHSV); in visitAdd()
343 if (Value *LHSV = dyn_castFNegVal(LHS)) in visitFAdd() local
344 return BinaryOperator::CreateFSub(RHS, LHSV); in visitFAdd()
DInstCombineCompares.cpp657 Value *LHSV = GEPLHS->getOperand(DiffOperand); in FoldGEPICmp() local
660 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), LHSV, RHSV); in FoldGEPICmp()
1336 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst() local
1339 .subtract(LHSV); in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1124 if (Value *LHSV = dyn_castNegVal(LHS)) { in visitAdd() local
1127 Value *NewAdd = Builder->CreateAdd(LHSV, RHSV, "sum"); in visitAdd()
1131 return BinaryOperator::CreateSub(RHS, LHSV); in visitAdd()
1318 if (Value *LHSV = dyn_castFNegVal(LHS)) { in visitFAdd() local
1319 Instruction *RI = BinaryOperator::CreateFSub(RHS, LHSV); in visitFAdd()
DInstCombineCompares.cpp1036 Value *LHSV = GEPLHS->getOperand(DiffOperand); in FoldGEPICmp() local
1039 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), LHSV, RHSV); in FoldGEPICmp()
2129 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst() local
2135 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == (RHSV - 1)) in visitICmpInstWithInstAndIntCst()
2144 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == RHSV) in visitICmpInstWithInstAndIntCst()
2155 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst() local
2158 .subtract(LHSV); in visitICmpInstWithInstAndIntCst()
2182 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == 0) in visitICmpInstWithInstAndIntCst()
2191 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == 0) in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp713 Value *LHSV = B.CreateZExt(B.CreateLoad(castToCStr(LHS, B), "lhsc"), in optimizeMemCmp() local
717 return B.CreateSub(LHSV, RHSV, "chardiff"); in optimizeMemCmp()
734 Value *LHSV = in optimizeMemCmp() local
739 return B.CreateZExt(B.CreateICmpNE(LHSV, RHSV), CI->getType(), "memcmp"); in optimizeMemCmp()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp751 Value *LHSV = B.CreateZExt(B.CreateLoad(CastToCStr(LHS, B), "lhsc"), in CallOptimizer() local
755 return B.CreateSub(LHSV, RHSV, "chardiff"); in CallOptimizer()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp2301 ValueList LHSV, RHSV; in vectorizeTree() local
2303 LHSV.push_back(cast<Instruction>(V)->getOperand(0)); in vectorizeTree()
2309 Value *L = vectorizeTree(LHSV); in vectorizeTree()