Home
last modified time | relevance | path

Searched refs:LenC (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp761 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemChr() local
764 if (LenC && LenC->isNullValue()) in optimizeMemChr()
769 if (!LenC || !getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()
775 Str = Str.substr(0, LenC->getZExtValue()); in optimizeMemChr()
850 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemCmp() local
851 if (!LenC) in optimizeMemCmp()
853 uint64_t Len = LenC->getZExtValue(); in optimizeMemCmp()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp166 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyMemSet() local
168 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyMemSet()
170 uint64_t Len = LenC->getLimitedValue(); in SimplifyMemSet()
193 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyMemSet()