Lines Matching defs:ICmp
1503 // Negate the predicate if an ICmp if it's used only by branches or selects by
1505 static bool negateICmpIfUsedByBranchOrSelectOnly(ICmpInst *ICmp,
1508 for (User *U : ICmp->users()) {
1513 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == ICmp)
1517 for (User *U : ICmp->users()) {
1547 ICmp->setPredicate(CmpInst::getInversePredicate(ICmp->getPredicate()));
1962 auto *ICmp = dyn_cast<ICmpInst>(Cond);
1963 if (!ICmp ||
1964 !negateICmpIfUsedByBranchOrSelectOnly(ICmp, BranchOrSelect, Scope))