Lines Matching defs:ICmp
415 auto ICmp = cast<ICmpInst>(BI->getCondition());
416 LLVM_DEBUG(dbgs() << " - Found condition: " << *ICmp << "\n");
417 if (!ICmp->isEquality())
420 auto IsCompareZero = [](ICmpInst *ICmp, Value *Count, unsigned OpIdx) {
421 if (auto *Const = dyn_cast<ConstantInt>(ICmp->getOperand(OpIdx)))
422 return Const->isZero() && ICmp->getOperand(OpIdx ^ 1) == Count;
430 if (!IsCompareZero(ICmp, Count, 0) && !IsCompareZero(ICmp, Count, 1) &&
431 !IsCompareZero(ICmp, CountBefZext, 0) &&
432 !IsCompareZero(ICmp, CountBefZext, 1))
435 unsigned SuccIdx = ICmp->getPredicate() == ICmpInst::ICMP_NE ? 0 : 1;