Searched refs:LenC (Results 1 – 6 of 6) sorted by relevance
621 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemChr() local624 if (LenC && LenC->isNullValue()) in optimizeMemChr()629 if (!LenC || !getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()635 Str = Str.substr(0, LenC->getZExtValue()); in optimizeMemChr()703 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemCmp() local704 if (!LenC) in optimizeMemCmp()706 uint64_t Len = LenC->getZExtValue(); in optimizeMemCmp()
690 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemChr() local693 if (LenC && LenC->isZero()) in optimizeMemChr()698 if (!LenC || !getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()704 Str = Str.substr(0, LenC->getZExtValue()); in optimizeMemChr()772 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in optimizeMemCmp() local773 if (!LenC) in optimizeMemCmp()776 uint64_t Len = LenC->getZExtValue(); in optimizeMemCmp()
132 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyMemSet() local134 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyMemSet()136 uint64_t Len = LenC->getZExtValue(); in SimplifyMemSet()161 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyMemSet()
742 ConstantInt *LenC = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in CallOptimizer() local743 if (!LenC) return 0; in CallOptimizer()744 uint64_t Len = LenC->getZExtValue(); in CallOptimizer()
184 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyMemSet() local186 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyMemSet()188 uint64_t Len = LenC->getLimitedValue(); in SimplifyMemSet()211 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyMemSet()
210 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyAnyMemSet() local212 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyAnyMemSet()214 uint64_t Len = LenC->getLimitedValue(); in SimplifyAnyMemSet()239 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyAnyMemSet()