Lines Matching refs:CharC
189 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr() local
190 if (!CharC) { in optimizeStrChr()
204 if (CharC->isZero()) // strchr(p, 0) -> p + strlen(p) in optimizeStrChr()
212 size_t I = (0xFF & CharC->getSExtValue()) == 0 in optimizeStrChr()
214 : Str.find(CharC->getSExtValue()); in optimizeStrChr()
224 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrRChr() local
227 if (!CharC) in optimizeStrRChr()
233 if (CharC->isZero()) in optimizeStrRChr()
239 size_t I = (0xFF & CharC->getSExtValue()) == 0 in optimizeStrRChr()
241 : Str.rfind(CharC->getSExtValue()); in optimizeStrRChr()
620 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeMemChr() local
646 if (!CharC && !Str.empty() && isOnlyUsedInZeroEqualityComparison(CI)) { in optimizeMemChr()
684 if (!CharC) in optimizeMemChr()
688 size_t I = Str.find(CharC->getSExtValue() & 0xFF); in optimizeMemChr()